home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 123 / CD Gamer Issue 123 (June 2003) (Disc 1).ISO / Games / Dev_Demo_EU / data1.cab / App_Executables / System / UWindow.u / ScriptText10.TextBuffer < prev    next >
Unknown  |  2003-02-28  |  20.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4e c9 02 63 6c 61 73 73 |........|N..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00000020| 41 72 65 61 20 65 78 74 | 65 6e 64 73 20 55 57 69 |Area ext|ends UWi|
|00000030| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 41 |ndowDyna|micTextA|
|00000040| 72 65 61 3b 0d 0a 0d 0a | 2f 2a 0d 0a 0d 0a 48 54 |rea;....|/*....HT|
|00000050| 4d 4c 20 43 75 72 72 65 | 6e 74 6c 79 20 53 75 70 |ML Curre|ntly Sup|
|00000060| 70 6f 72 74 65 64 0d 0a | 3d 3d 3d 3d 3d 3d 3d 3d |ported..|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 0d 0a 0d 0a 50 61 72 73 | 65 64 20 6f 6e 20 61 64 |....Pars|ed on ad|
|00000090| 64 0d 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d..-----|--------|
|000000a0| 0d 0a 3c 62 6f 64 79 20 | 62 67 63 6f 6c 6f 72 3d |..<body |bgcolor=|
|000000b0| 23 66 66 66 66 66 66 20 | 6c 69 6e 6b 3d 23 66 66 |#ffffff |link=#ff|
|000000c0| 66 66 66 66 20 61 6c 69 | 6e 6b 3d 23 66 66 66 66 |ffff ali|nk=#ffff|
|000000d0| 66 66 3e 2e 2e 2e 3c 2f | 62 6f 64 79 3e 0d 0a 3c |ff>...</|body>..<|
|000000e0| 66 6f 6e 74 20 63 6f 6c | 6f 72 3d 23 66 66 66 66 |font col|or=#ffff|
|000000f0| 66 66 20 62 67 63 6f 6c | 6f 72 3d 23 66 66 66 66 |ff bgcol|or=#ffff|
|00000100| 66 66 3e 2e 2e 2e 3c 2f | 66 6f 6e 74 3e 0d 0a 3c |ff>...</|font>..<|
|00000110| 62 72 3e 0d 0a 3c 63 65 | 6e 74 65 72 3e 2e 2e 2e |br>..<ce|nter>...|
|00000120| 2e 3c 2f 63 65 6e 74 65 | 72 3e 0d 0a 3c 70 3e 0d |.</cente|r>..<p>.|
|00000130| 0a 3c 68 31 3e 2e 2e 2e | 3c 2f 68 31 3e 0d 0a 0d |.<h1>...|</h1>...|
|00000140| 0a 50 61 72 73 65 64 20 | 6f 6e 20 61 64 64 20 61 |.Parsed |on add a|
|00000150| 6e 64 20 64 69 73 70 6c | 61 79 0d 0a 2d 2d 2d 2d |nd displ|ay..----|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000170| 2d 2d 2d 2d 2d 0d 0a 3c | 6e 6f 62 72 3e 2e 2e 2e |-----..<|nobr>...|
|00000180| 3c 2f 6e 6f 62 72 3e 0d | 0a 3c 61 20 68 72 65 66 |</nobr>.|.<a href|
|00000190| 3d 22 2e 2e 2e 22 3e 2e | 2e 2e 3c 2f 61 3e 0d 0a |="...">.|..</a>..|
|000001a0| 3c 62 3e 2e 2e 2e 3c 2f | 62 3e 0d 0a 3c 75 3e 2e |<b>...</|b>..<u>.|
|000001b0| 2e 2e 3c 2f 75 3e 0d 0a | 3c 62 6c 69 6e 6b 3e 2e |..</u>..|<blink>.|
|000001c0| 2e 2e 3c 2f 62 6c 69 6e | 6b 3e 0d 0a 0d 0a 50 61 |..</blin|k>....Pa|
|000001d0| 72 73 65 64 20 6f 6e 6c | 79 20 6f 6e 20 64 69 73 |rsed onl|y on dis|
|000001e0| 70 6c 61 79 0d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |play..--|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 26 67 |--------|----..&g|
|00000200| 74 3b 0d 0a 26 6c 74 3b | 0d 0a 26 61 6d 70 3b 0d |t;..&lt;|..&amp;.|
|00000210| 0a 26 6e 62 73 70 3b 0d | 0a 0d 0a 50 6c 61 6e 6e |.&nbsp;.|...Plann|
|00000220| 65 64 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 0d |ed impro|vements.|
|00000230| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000240| 2d 2d 2d 2d 2d 0d 0a 3c | 75 6c 3e 3c 6c 69 3e 69 |-----..<|ul><li>i|
|00000250| 74 65 6d 20 31 3c 6c 69 | 3e 69 74 65 6d 20 32 2e |tem 1<li|>item 2.|
|00000260| 2e 2e 3c 2f 75 6c 3e 0d | 0a 3c 74 61 62 6c 65 3e |..</ul>.|.<table>|
|00000270| 2e 2e 2e 3c 2f 74 61 62 | 6c 65 3e 0d 0a 0d 0a 42 |...</tab|le>....B|
|00000280| 75 67 73 0d 0a 2d 2d 2d | 2d 0d 0a 54 68 65 20 70 |ugs..---|-..The p|
|00000290| 61 72 73 69 6e 67 20 69 | 73 20 70 72 65 74 74 79 |arsing i|s pretty|
|000002a0| 20 73 6c 61 63 6b 21 0d | 0a 0d 0a 2a 2f 0d 0a 0d | slack!.|...*/...|
|000002b0| 0a 2f 2f 20 64 65 66 61 | 75 6c 74 20 73 74 79 6c |.// defa|ult styl|
|000002c0| 65 73 0d 0a 2f 2f 76 61 | 72 20 43 6f 6c 6f 72 20 |es..//va|r Color |
|000002d0| 54 65 78 74 43 6f 6c 6f | 72 3b 0d 0a 76 61 72 20 |TextColo|r;..var |
|000002e0| 43 6f 6c 6f 72 20 42 47 | 43 6f 6c 6f 72 3b 0d 0a |Color BG|Color;..|
|000002f0| 76 61 72 20 43 6f 6c 6f | 72 20 4c 69 6e 6b 43 6f |var Colo|r LinkCo|
|00000300| 6c 6f 72 3b 0d 0a 76 61 | 72 20 43 6f 6c 6f 72 20 |lor;..va|r Color |
|00000310| 41 4c 69 6e 6b 43 6f 6c | 6f 72 3b 0d 0a 76 61 72 |ALinkCol|or;..var|
|00000320| 20 66 6c 6f 61 74 20 4c | 61 73 74 42 6c 69 6e 6b | float L|astBlink|
|00000330| 54 69 6d 65 3b 0d 0a 76 | 61 72 20 62 6f 6f 6c 20 |Time;..v|ar bool |
|00000340| 62 53 68 6f 77 42 6c 69 | 6e 6b 3b 0d 0a 76 61 72 |bShowBli|nk;..var|
|00000350| 20 62 6f 6f 6c 20 62 52 | 65 6c 65 61 73 65 64 3b | bool bR|eleased;|
|00000360| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |....func|tion Set|
|00000370| 48 54 4d 4c 28 73 74 72 | 69 6e 67 20 48 54 4d 4c |HTML(str|ing HTML|
|00000380| 29 0d 0a 7b 0d 0a 09 43 | 6c 65 61 72 28 29 3b 0d |)..{...C|lear();.|
|00000390| 0a 09 52 65 70 6c 61 63 | 65 54 65 78 74 28 48 54 |..Replac|eText(HT|
|000003a0| 4d 4c 2c 20 43 68 72 28 | 31 33 29 24 43 68 72 28 |ML, Chr(|13)$Chr(|
|000003b0| 31 30 29 2c 20 22 20 22 | 29 3b 0d 0a 09 52 65 70 |10), " "|);...Rep|
|000003c0| 6c 61 63 65 54 65 78 74 | 28 48 54 4d 4c 2c 20 43 |laceText|(HTML, C|
|000003d0| 68 72 28 31 33 29 2c 20 | 22 20 22 29 3b 0d 0a 09 |hr(13), |" ");...|
|000003e0| 52 65 70 6c 61 63 65 54 | 65 78 74 28 48 54 4d 4c |ReplaceT|ext(HTML|
|000003f0| 2c 20 43 68 72 28 31 30 | 29 2c 20 22 20 22 29 3b |, Chr(10|), " ");|
|00000400| 0d 0a 09 41 64 64 54 65 | 78 74 28 48 54 4d 4c 29 |...AddTe|xt(HTML)|
|00000410| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000420| 20 42 65 66 6f 72 65 50 | 61 69 6e 74 28 43 61 6e | BeforeP|aint(Can|
|00000430| 76 61 73 20 43 2c 20 66 | 6c 6f 61 74 20 58 2c 20 |vas C, f|loat X, |
|00000440| 66 6c 6f 61 74 20 59 29 | 0d 0a 7b 0d 0a 09 53 75 |float Y)|..{...Su|
|00000450| 70 65 72 2e 42 65 66 6f | 72 65 50 61 69 6e 74 28 |per.Befo|rePaint(|
|00000460| 43 2c 20 58 2c 20 59 29 | 3b 0d 0a 09 43 75 72 73 |C, X, Y)|;...Curs|
|00000470| 6f 72 20 3d 20 52 6f 6f | 74 2e 4e 6f 72 6d 61 6c |or = Roo|t.Normal|
|00000480| 43 75 72 73 6f 72 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Cursor;.|.}....fu|
|00000490| 6e 63 74 69 6f 6e 20 50 | 61 69 6e 74 28 43 61 6e |nction P|aint(Can|
|000004a0| 76 61 73 20 43 2c 20 66 | 6c 6f 61 74 20 58 2c 20 |vas C, f|loat X, |
|000004b0| 66 6c 6f 61 74 20 59 29 | 0d 0a 7b 0d 0a 09 43 2e |float Y)|..{...C.|
|000004c0| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 42 47 43 6f |DrawColo|r = BGCo|
|000004d0| 6c 6f 72 3b 0d 0a 09 44 | 72 61 77 53 74 72 65 74 |lor;...D|rawStret|
|000004e0| 63 68 65 64 54 65 78 74 | 75 72 65 28 43 2c 20 30 |chedText|ure(C, 0|
|000004f0| 2c 20 30 2c 20 57 69 6e | 57 69 64 74 68 2c 20 57 |, 0, Win|Width, W|
|00000500| 69 6e 48 65 69 67 68 74 | 2c 20 54 65 78 74 75 72 |inHeight|, Textur|
|00000510| 65 27 57 68 69 74 65 54 | 65 78 74 75 72 65 27 29 |e'WhiteT|exture')|
|00000520| 3b 0d 0a 09 53 75 70 65 | 72 2e 50 61 69 6e 74 28 |;...Supe|r.Paint(|
|00000530| 43 2c 20 58 2c 20 59 29 | 3b 0d 0a 09 62 52 65 6c |C, X, Y)|;...bRel|
|00000540| 65 61 73 65 64 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |eased = |False;..|
|00000550| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 6c |}....fun|ction Cl|
|00000560| 69 63 6b 28 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f |ick(floa|t X, flo|
|00000570| 61 74 20 59 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |at Y)..{|...Super|
|00000580| 2e 43 6c 69 63 6b 28 58 | 2c 20 59 29 3b 0d 0a 09 |.Click(X|, Y);...|
|00000590| 62 52 65 6c 65 61 73 65 | 64 20 3d 20 54 72 75 65 |bRelease|d = True|
|000005a0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000005b0| 20 50 72 6f 63 65 73 73 | 55 52 4c 28 73 74 72 69 | Process|URL(stri|
|000005c0| 6e 67 20 55 52 4c 29 0d | 0a 7b 0d 0a 09 4c 6f 67 |ng URL).|.{...Log|
|000005d0| 28 22 43 6c 69 63 6b 65 | 64 20 4c 69 6e 6b 3a 20 |("Clicke|d Link: |
|000005e0| 3e 3e 22 24 55 52 4c 24 | 22 3c 3c 22 29 3b 0d 0a |>>"$URL$|"<<");..|
|000005f0| 0d 0a 09 69 66 28 20 4c | 65 66 74 28 55 52 4c 2c |...if( L|eft(URL,|
|00000600| 20 37 29 20 7e 3d 20 22 | 6d 61 69 6c 74 6f 3a 22 | 7) ~= "|mailto:"|
|00000610| 20 29 0d 0a 09 09 47 65 | 74 50 6c 61 79 65 72 4f | )....Ge|tPlayerO|
|00000620| 77 6e 65 72 28 29 2e 43 | 6f 6e 73 6f 6c 65 43 6f |wner().C|onsoleCo|
|00000630| 6d 6d 61 6e 64 28 22 73 | 74 61 72 74 20 22 24 55 |mmand("s|tart "$U|
|00000640| 52 4c 29 3b 0d 0a 09 69 | 66 28 20 4c 65 66 74 28 |RL);...i|f( Left(|
|00000650| 55 52 4c 2c 20 37 29 20 | 7e 3d 20 22 68 74 74 70 |URL, 7) |~= "http|
|00000660| 3a 2f 2f 22 20 29 0d 0a | 09 09 47 65 74 50 6c 61 |://" )..|..GetPla|
|00000670| 79 65 72 4f 77 6e 65 72 | 28 29 2e 43 6f 6e 73 6f |yerOwner|().Conso|
|00000680| 6c 65 43 6f 6d 6d 61 6e | 64 28 22 73 74 61 72 74 |leComman|d("start|
|00000690| 20 22 24 55 52 4c 29 3b | 0d 0a 09 69 66 28 20 4c | "$URL);|...if( L|
|000006a0| 65 66 74 28 55 52 4c 2c | 20 36 29 20 7e 3d 20 22 |eft(URL,| 6) ~= "|
|000006b0| 66 74 70 3a 2f 2f 22 20 | 29 0d 0a 09 09 47 65 74 |ftp://" |)....Get|
|000006c0| 50 6c 61 79 65 72 4f 77 | 6e 65 72 28 29 2e 43 6f |PlayerOw|ner().Co|
|000006d0| 6e 73 6f 6c 65 43 6f 6d | 6d 61 6e 64 28 22 73 74 |nsoleCom|mand("st|
|000006e0| 61 72 74 20 22 24 55 52 | 4c 29 3b 0d 0a 09 69 66 |art "$UR|L);...if|
|000006f0| 28 20 4c 65 66 74 28 55 | 52 4c 2c 20 39 29 20 7e |( Left(U|RL, 9) ~|
|00000700| 3d 20 22 74 65 6c 6e 65 | 74 3a 2f 2f 22 20 29 0d |= "telne|t://" ).|
|00000710| 0a 09 09 47 65 74 50 6c | 61 79 65 72 4f 77 6e 65 |...GetPl|ayerOwne|
|00000720| 72 28 29 2e 43 6f 6e 73 | 6f 6c 65 43 6f 6d 6d 61 |r().Cons|oleComma|
|00000730| 6e 64 28 22 73 74 61 72 | 74 20 22 24 55 52 4c 29 |nd("star|t "$URL)|
|00000740| 3b 0d 0a 09 69 66 28 20 | 4c 65 66 74 28 55 52 4c |;...if( |Left(URL|
|00000750| 2c 20 39 29 20 7e 3d 20 | 22 67 6f 70 68 65 72 3a |, 9) ~= |"gopher:|
|00000760| 2f 2f 22 20 29 0d 0a 09 | 09 47 65 74 50 6c 61 79 |//" )...|.GetPlay|
|00000770| 65 72 4f 77 6e 65 72 28 | 29 2e 43 6f 6e 73 6f 6c |erOwner(|).Consol|
|00000780| 65 43 6f 6d 6d 61 6e 64 | 28 22 73 74 61 72 74 20 |eCommand|("start |
|00000790| 22 24 55 52 4c 29 3b 0d | 0a 09 69 66 28 20 4c 65 |"$URL);.|..if( Le|
|000007a0| 66 74 28 55 52 4c 2c 20 | 34 29 20 7e 3d 20 22 77 |ft(URL, |4) ~= "w|
|000007b0| 77 77 2e 22 20 29 0d 0a | 09 09 47 65 74 50 6c 61 |ww." )..|..GetPla|
|000007c0| 79 65 72 4f 77 6e 65 72 | 28 29 2e 43 6f 6e 73 6f |yerOwner|().Conso|
|000007d0| 6c 65 43 6f 6d 6d 61 6e | 64 28 22 73 74 61 72 74 |leComman|d("start|
|000007e0| 20 68 74 74 70 3a 2f 2f | 22 24 55 52 4c 29 3b 0d | http://|"$URL);.|
|000007f0| 0a 09 69 66 28 20 4c 65 | 66 74 28 55 52 4c 2c 20 |..if( Le|ft(URL, |
|00000800| 34 29 20 7e 3d 20 22 66 | 74 70 2e 22 20 29 0d 0a |4) ~= "f|tp." )..|
|00000810| 09 09 47 65 74 50 6c 61 | 79 65 72 4f 77 6e 65 72 |..GetPla|yerOwner|
|00000820| 28 29 2e 43 6f 6e 73 6f | 6c 65 43 6f 6d 6d 61 6e |().Conso|leComman|
|00000830| 64 28 22 73 74 61 72 74 | 20 66 74 70 3a 2f 2f 22 |d("start| ftp://"|
|00000840| 24 55 52 4c 29 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |$URL);..|.else...|
|00000850| 69 66 28 20 4c 65 66 74 | 28 55 52 4c 2c 20 39 29 |if( Left|(URL, 9)|
|00000860| 20 7e 3d 20 22 75 6e 72 | 65 61 6c 3a 2f 2f 22 20 | ~= "unr|eal://" |
|00000870| 29 0d 0a 09 09 4c 61 75 | 6e 63 68 55 6e 72 65 61 |)....Lau|nchUnrea|
|00000880| 6c 55 52 4c 28 55 52 4c | 29 3b 0d 0a 7d 0d 0a 0d |lURL(URL|);..}...|
|00000890| 0a 66 75 6e 63 74 69 6f | 6e 20 4f 76 65 72 55 52 |.functio|n OverUR|
|000008a0| 4c 28 73 74 72 69 6e 67 | 20 55 52 4c 29 0d 0a 7b |L(string| URL)..{|
|000008b0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000008c0| 4c 61 75 6e 63 68 55 6e | 72 65 61 6c 55 52 4c 28 |LaunchUn|realURL(|
|000008d0| 73 74 72 69 6e 67 20 55 | 52 4c 29 0d 0a 7b 0d 0a |string U|RL)..{..|
|000008e0| 09 47 65 74 50 6c 61 79 | 65 72 4f 77 6e 65 72 28 |.GetPlay|erOwner(|
|000008f0| 29 2e 43 6c 69 65 6e 74 | 54 72 61 76 65 6c 28 55 |).Client|Travel(U|
|00000900| 52 4c 2c 20 54 52 41 56 | 45 4c 5f 41 62 73 6f 6c |RL, TRAV|EL_Absol|
|00000910| 75 74 65 2c 20 66 61 6c | 73 65 29 3b 0d 0a 7d 0d |ute, fal|se);..}.|
|00000920| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 54 65 78 74 |...funct|ion Text|
|00000930| 41 72 65 61 54 65 78 74 | 53 69 7a 65 28 43 61 6e |AreaText|Size(Can|
|00000940| 76 61 73 20 43 2c 20 73 | 74 72 69 6e 67 20 54 65 |vas C, s|tring Te|
|00000950| 78 74 2c 20 6f 75 74 20 | 66 6c 6f 61 74 20 57 2c |xt, out |float W,|
|00000960| 20 6f 75 74 20 66 6c 6f | 61 74 20 48 29 0d 0a 7b | out flo|at H)..{|
|00000970| 0d 0a 09 52 65 70 6c 61 | 63 65 54 65 78 74 28 54 |...Repla|ceText(T|
|00000980| 65 78 74 2c 20 22 26 6e | 62 73 70 3b 22 2c 20 22 |ext, "&n|bsp;", "|
|00000990| 20 22 29 3b 0d 0a 09 52 | 65 70 6c 61 63 65 54 65 | ");...R|eplaceTe|
|000009a0| 78 74 28 54 65 78 74 2c | 20 22 26 67 74 3b 22 2c |xt(Text,| "&gt;",|
|000009b0| 20 22 3e 22 29 3b 0d 0a | 09 52 65 70 6c 61 63 65 | ">");..|.Replace|
|000009c0| 54 65 78 74 28 54 65 78 | 74 2c 20 22 26 6c 74 3b |Text(Tex|t, "&lt;|
|000009d0| 22 2c 20 22 3c 22 29 3b | 0d 0a 09 52 65 70 6c 61 |", "<");|...Repla|
|000009e0| 63 65 54 65 78 74 28 54 | 65 78 74 2c 20 22 26 61 |ceText(T|ext, "&a|
|000009f0| 6d 70 3b 22 2c 20 22 26 | 22 29 3b 0d 0a 0d 0a 09 |mp;", "&|");.....|
|00000a00| 54 65 78 74 53 69 7a 65 | 28 43 2c 20 54 65 78 74 |TextSize|(C, Text|
|00000a10| 2c 20 57 2c 20 48 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |, W, H);|..}....f|
|00000a20| 75 6e 63 74 69 6f 6e 20 | 54 65 78 74 41 72 65 61 |unction |TextArea|
|00000a30| 43 6c 69 70 54 65 78 74 | 28 43 61 6e 76 61 73 20 |ClipText|(Canvas |
|00000a40| 43 2c 20 66 6c 6f 61 74 | 20 44 72 61 77 58 2c 20 |C, float| DrawX, |
|00000a50| 66 6c 6f 61 74 20 44 72 | 61 77 59 2c 20 63 6f 65 |float Dr|awY, coe|
|00000a60| 72 63 65 20 73 74 72 69 | 6e 67 20 54 65 78 74 2c |rce stri|ng Text,|
|00000a70| 20 6f 70 74 69 6f 6e 61 | 6c 20 62 6f 6f 6c 20 62 | optiona|l bool b|
|00000a80| 43 68 65 63 6b 48 6f 74 | 6b 65 79 29 0d 0a 7b 0d |CheckHot|key)..{.|
|00000a90| 0a 09 52 65 70 6c 61 63 | 65 54 65 78 74 28 54 65 |..Replac|eText(Te|
|00000aa0| 78 74 2c 20 22 26 6e 62 | 73 70 3b 22 2c 20 22 20 |xt, "&nb|sp;", " |
|00000ab0| 22 29 3b 0d 0a 09 52 65 | 70 6c 61 63 65 54 65 78 |");...Re|placeTex|
|00000ac0| 74 28 54 65 78 74 2c 20 | 22 26 67 74 3b 22 2c 20 |t(Text, |"&gt;", |
|00000ad0| 22 3e 22 29 3b 0d 0a 09 | 52 65 70 6c 61 63 65 54 |">");...|ReplaceT|
|00000ae0| 65 78 74 28 54 65 78 74 | 2c 20 22 26 6c 74 3b 22 |ext(Text|, "&lt;"|
|00000af0| 2c 20 22 3c 22 29 3b 0d | 0a 09 52 65 70 6c 61 63 |, "<");.|..Replac|
|00000b00| 65 54 65 78 74 28 54 65 | 78 74 2c 20 22 26 61 6d |eText(Te|xt, "&am|
|00000b10| 70 3b 22 2c 20 22 26 22 | 29 3b 0d 0a 0d 0a 09 43 |p;", "&"|);.....C|
|00000b20| 6c 69 70 54 65 78 74 28 | 43 2c 20 44 72 61 77 58 |lipText(|C, DrawX|
|00000b30| 2c 20 44 72 61 77 59 2c | 20 54 65 78 74 2c 20 62 |, DrawY,| Text, b|
|00000b40| 43 68 65 63 6b 48 6f 74 | 4b 65 79 29 3b 0d 0a 7d |CheckHot|Key);..}|
|00000b50| 0d 0a 0d 0a 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |....////|////////|
|00000b60| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b70| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b80| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 0d 0a 2f 2f 20 |////////|///..// |
|00000b90| 4f 76 65 72 6c 6f 61 64 | 65 64 20 66 75 6e 63 74 |Overload|ed funct|
|00000ba0| 69 6f 6e 73 20 66 72 6f | 6d 20 55 57 69 6e 64 6f |ions fro|m UWindo|
|00000bb0| 77 44 79 6e 61 6d 69 63 | 54 65 78 74 41 72 65 61 |wDynamic|TextArea|
|00000bc0| 0d 0a 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00000bd0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000be0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bf0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 0d 0a 66 75 6e |////////|/....fun|
|00000c00| 63 74 69 6f 6e 20 57 72 | 61 70 52 6f 77 28 43 61 |ction Wr|apRow(Ca|
|00000c10| 6e 76 61 73 20 43 2c 20 | 55 57 69 6e 64 6f 77 44 |nvas C, |UWindowD|
|00000c20| 79 6e 61 6d 69 63 54 65 | 78 74 52 6f 77 20 4c 29 |ynamicTe|xtRow L)|
|00000c30| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 48 54 4d 4c |..{...lo|cal HTML|
|00000c40| 53 74 79 6c 65 20 43 75 | 72 72 65 6e 74 53 74 79 |Style Cu|rrentSty|
|00000c50| 6c 65 3b 0d 0a 09 6c 6f | 63 61 6c 20 55 57 69 6e |le;...lo|cal UWin|
|00000c60| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 20 52 |dowHTMLT|extRow R|
|00000c70| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |;...loca|l string|
|00000c80| 20 49 6e 70 75 74 2c 20 | 4c 65 66 74 54 65 78 74 | Input, |LeftText|
|00000c90| 2c 20 48 54 4d 4c 2c 20 | 52 69 67 68 74 54 65 78 |, HTML, |RightTex|
|00000ca0| 74 3b 0d 0a 0d 0a 09 53 | 75 70 65 72 2e 57 72 61 |t;.....S|uper.Wra|
|00000cb0| 70 52 6f 77 28 43 2c 20 | 4c 29 3b 0d 0a 0d 0a 09 |pRow(C, |L);.....|
|00000cc0| 2f 2f 20 47 65 6e 65 72 | 61 74 65 20 74 68 65 20 |// Gener|ate the |
|00000cd0| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 20 61 6e |DisplayS|tring an|
|00000ce0| 64 20 53 74 79 6c 65 53 | 74 72 69 6e 67 20 6c 69 |d StyleS|tring li|
|00000cf0| 6e 65 73 20 66 6f 72 20 | 65 61 63 68 20 72 6f 77 |nes for |each row|
|00000d00| 0d 0a 09 52 20 3d 20 55 | 57 69 6e 64 6f 77 48 54 |...R = U|WindowHT|
|00000d10| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 3b 0d 0a 09 |MLTextRo|w(L);...|
|00000d20| 77 68 69 6c 65 28 52 20 | 21 3d 20 4e 6f 6e 65 20 |while(R |!= None |
|00000d30| 26 26 20 28 52 20 3d 3d | 20 4c 20 7c 7c 20 52 2e |&& (R ==| L || R.|
|00000d40| 57 72 61 70 50 61 72 65 | 6e 74 20 3d 3d 20 4c 29 |WrapPare|nt == L)|
|00000d50| 29 0d 0a 09 7b 0d 0a 09 | 09 52 2e 44 69 73 70 6c |)...{...|.R.Displ|
|00000d60| 61 79 53 74 72 69 6e 67 | 20 3d 20 22 22 3b 0d 0a |ayString| = "";..|
|00000d70| 09 09 52 2e 53 74 79 6c | 65 53 74 72 69 6e 67 20 |..R.Styl|eString |
|00000d80| 3d 20 22 22 3b 0d 0a 0d | 0a 09 09 43 75 72 72 65 |= "";...|...Curre|
|00000d90| 6e 74 53 74 79 6c 65 20 | 3d 20 52 2e 53 74 61 72 |ntStyle |= R.Star|
|00000da0| 74 53 74 79 6c 65 3b 0d | 0a 09 09 0d 0a 09 09 49 |tStyle;.|.......I|
|00000db0| 6e 70 75 74 20 3d 20 52 | 2e 54 65 78 74 3b 0d 0a |nput = R|.Text;..|
|00000dc0| 09 09 77 68 69 6c 65 28 | 49 6e 70 75 74 20 21 3d |..while(|Input !=|
|00000dd0| 20 22 22 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 50 61 | "")....|{.....Pa|
|00000de0| 72 73 65 48 54 4d 4c 28 | 49 6e 70 75 74 2c 20 4c |rseHTML(|Input, L|
|00000df0| 65 66 74 54 65 78 74 2c | 20 48 54 4d 4c 2c 20 52 |eftText,| HTML, R|
|00000e00| 69 67 68 74 54 65 78 74 | 29 3b 0d 0a 0d 0a 09 09 |ightText|);......|
|00000e10| 09 69 66 28 4c 65 66 74 | 54 65 78 74 20 21 3d 20 |.if(Left|Text != |
|00000e20| 22 22 20 7c 7c 20 52 2e | 44 69 73 70 6c 61 79 53 |"" || R.|DisplayS|
|00000e30| 74 72 69 6e 67 20 3d 3d | 20 22 22 29 0d 0a 09 09 |tring ==| "")....|
|00000e40| 09 7b 0d 0a 09 09 09 09 | 52 2e 44 69 73 70 6c 61 |.{......|R.Displa|
|00000e50| 79 53 74 72 69 6e 67 20 | 3d 20 52 2e 44 69 73 70 |yString |= R.Disp|
|00000e60| 6c 61 79 53 74 72 69 6e | 67 20 24 20 4c 65 66 74 |layStrin|g $ Left|
|00000e70| 54 65 78 74 3b 0d 0a 09 | 09 09 09 52 2e 53 74 79 |Text;...|...R.Sty|
|00000e80| 6c 65 53 74 72 69 6e 67 | 20 3d 20 52 2e 53 74 79 |leString| = R.Sty|
|00000e90| 6c 65 53 74 72 69 6e 67 | 20 24 20 57 72 69 74 65 |leString| $ Write|
|00000ea0| 53 74 79 6c 65 54 65 78 | 74 28 43 75 72 72 65 6e |StyleTex|t(Curren|
|00000eb0| 74 53 74 79 6c 65 2c 20 | 4c 65 6e 28 4c 65 66 74 |tStyle, |Len(Left|
|00000ec0| 54 65 78 74 29 29 3b 0d | 0a 09 09 09 7d 0d 0a 0d |Text));.|....}...|
|00000ed0| 0a 09 09 09 50 72 6f 63 | 65 73 73 49 6e 6c 69 6e |....Proc|essInlin|
|00000ee0| 65 48 54 4d 4c 28 48 54 | 4d 4c 2c 20 43 75 72 72 |eHTML(HT|ML, Curr|
|00000ef0| 65 6e 74 53 74 79 6c 65 | 29 3b 0d 0a 09 09 09 53 |entStyle|);.....S|
|00000f00| 65 74 43 61 6e 76 61 73 | 53 74 79 6c 65 28 43 2c |etCanvas|Style(C,|
|00000f10| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 3b 0d | Current|Style);.|
|00000f20| 0a 0d 0a 09 09 09 49 6e | 70 75 74 20 3d 20 52 69 |......In|put = Ri|
|00000f30| 67 68 74 54 65 78 74 3b | 0d 0a 09 09 7d 0d 0a 0d |ghtText;|....}...|
|00000f40| 0a 09 09 52 20 3d 20 55 | 57 69 6e 64 6f 77 48 54 |...R = U|WindowHT|
|00000f50| 4d 4c 54 65 78 74 52 6f | 77 28 52 2e 4e 65 78 74 |MLTextRo|w(R.Next|
|00000f60| 29 3b 0d 0a 09 7d 09 0d | 0a 7d 0d 0a 0d 0a 66 75 |);...}..|.}....fu|
|00000f70| 6e 63 74 69 6f 6e 20 66 | 6c 6f 61 74 20 44 72 61 |nction f|loat Dra|
|00000f80| 77 54 65 78 74 4c 69 6e | 65 28 43 61 6e 76 61 73 |wTextLin|e(Canvas|
|00000f90| 20 43 2c 20 55 57 69 6e | 64 6f 77 44 79 6e 61 6d | C, UWin|dowDynam|
|00000fa0| 69 63 54 65 78 74 52 6f | 77 20 4c 2c 20 66 6c 6f |icTextRo|w L, flo|
|00000fb0| 61 74 20 59 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |at Y)..{|...local|
|00000fc0| 20 66 6c 6f 61 74 20 58 | 2c 20 57 2c 20 48 2c 20 | float X|, W, H, |
|00000fd0| 4d 6f 75 73 65 58 2c 20 | 4d 6f 75 73 65 59 3b 0d |MouseX, |MouseY;.|
|00000fe0| 0a 09 6c 6f 63 61 6c 20 | 48 54 4d 4c 53 74 79 6c |..local |HTMLStyl|
|00000ff0| 65 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 3b 0d |e Curren|tStyle;.|
|00001000| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 52 6f |..local |float Ro|
|00001010| 77 48 65 69 67 68 74 3b | 0d 0a 09 6c 6f 63 61 6c |wHeight;|...local|
|00001020| 20 43 6f 6c 6f 72 20 4f | 6c 64 43 6f 6c 6f 72 3b | Color O|ldColor;|
|00001030| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 53 74 79 |...local| int Sty|
|00001040| 6c 65 50 6f 73 2c 20 44 | 69 73 70 6c 61 79 50 6f |lePos, D|isplayPo|
|00001050| 73 2c 20 69 3b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |s, i;...|local st|
|00001060| 72 69 6e 67 20 53 3b 0d | 0a 0d 0a 09 52 6f 77 48 |ring S;.|....RowH|
|00001070| 65 69 67 68 74 20 3d 20 | 30 3b 0d 0a 0d 0a 09 43 |eight = |0;.....C|
|00001080| 75 72 72 65 6e 74 53 74 | 79 6c 65 20 3d 20 55 57 |urrentSt|yle = UW|
|00001090| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|000010a0| 28 4c 29 2e 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |(L).Star|tStyle;.|
|000010b0| 0a 09 69 66 28 43 75 72 | 72 65 6e 74 53 74 79 6c |..if(Cur|rentStyl|
|000010c0| 65 2e 62 43 65 6e 74 65 | 72 29 0d 0a 09 7b 0d 0a |e.bCente|r)...{..|
|000010d0| 09 09 57 20 3d 20 43 61 | 6c 63 48 54 4d 4c 54 65 |..W = Ca|lcHTMLTe|
|000010e0| 78 74 57 69 64 74 68 28 | 43 2c 20 4c 2e 54 65 78 |xtWidth(|C, L.Tex|
|000010f0| 74 2c 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 29 |t, Curre|ntStyle)|
|00001100| 3b 0d 0a 09 09 69 66 28 | 56 65 72 74 53 42 2e 62 |;....if(|VertSB.b|
|00001110| 57 69 6e 64 6f 77 56 69 | 73 69 62 6c 65 29 0d 0a |WindowVi|sible)..|
|00001120| 09 09 09 58 20 3d 20 69 | 6e 74 28 28 28 57 69 6e |...X = i|nt(((Win|
|00001130| 57 69 64 74 68 20 2d 20 | 56 65 72 74 53 42 2e 57 |Width - |VertSB.W|
|00001140| 69 6e 57 69 64 74 68 29 | 20 2d 20 57 29 20 2f 20 |inWidth)| - W) / |
|00001150| 32 29 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |2);....e|lse.....|
|00001160| 58 20 3d 20 69 6e 74 28 | 28 57 69 6e 57 69 64 74 |X = int(|(WinWidt|
|00001170| 68 20 2d 20 57 29 20 2f | 20 32 29 3b 0d 0a 09 7d |h - W) /| 2);...}|
|00001180| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 58 20 3d 20 32 |...else.|...X = 2|
|00001190| 3b 0d 0a 0d 0a 09 69 66 | 28 47 65 74 45 6e 74 72 |;.....if|(GetEntr|
|000011a0| 79 4c 65 76 65 6c 28 29 | 2e 54 69 6d 65 53 65 63 |yLevel()|.TimeSec|
|000011b0| 6f 6e 64 73 20 3e 20 4c | 61 73 74 42 6c 69 6e 6b |onds > L|astBlink|
|000011c0| 54 69 6d 65 20 2b 20 30 | 2e 35 29 0d 0a 09 7b 0d |Time + 0|.5)...{.|
|000011d0| 0a 09 09 62 53 68 6f 77 | 42 6c 69 6e 6b 20 3d 20 |...bShow|Blink = |
|000011e0| 21 62 53 68 6f 77 42 6c | 69 6e 6b 3b 0d 0a 09 09 |!bShowBl|ink;....|
|000011f0| 4c 61 73 74 42 6c 69 6e | 6b 54 69 6d 65 20 3d 20 |LastBlin|kTime = |
|00001200| 47 65 74 45 6e 74 72 79 | 4c 65 76 65 6c 28 29 2e |GetEntry|Level().|
|00001210| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 09 7d |TimeSeco|nds;...}|
|00001220| 0d 0a 0d 0a 09 69 66 28 | 55 57 69 6e 64 6f 77 48 |.....if(|UWindowH|
|00001230| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 44 69 |TMLTextR|ow(L).Di|
|00001240| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 3d 3d 20 22 |splayStr|ing == "|
|00001250| 22 29 0d 0a 09 09 53 65 | 74 43 61 6e 76 61 73 53 |")....Se|tCanvasS|
|00001260| 74 79 6c 65 28 43 2c 20 | 43 75 72 72 65 6e 74 53 |tyle(C, |CurrentS|
|00001270| 74 79 6c 65 29 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |tyle);..|.else...|
|00001280| 7b 0d 0a 09 09 77 68 69 | 6c 65 28 44 69 73 70 6c |{....whi|le(Displ|
|00001290| 61 79 50 6f 73 20 3c 20 | 4c 65 6e 28 55 57 69 6e |ayPos < |Len(UWin|
|000012a0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|000012b0| 29 2e 44 69 73 70 6c 61 | 79 53 74 72 69 6e 67 29 |).Displa|yString)|
|000012c0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 20 3d 20 52 |)....{..|...i = R|
|000012d0| 65 61 64 53 74 79 6c 65 | 54 65 78 74 28 55 57 69 |eadStyle|Text(UWi|
|000012e0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|000012f0| 4c 29 2e 53 74 79 6c 65 | 53 74 72 69 6e 67 2c 20 |L).Style|String, |
|00001300| 53 74 79 6c 65 50 6f 73 | 2c 20 43 75 72 72 65 6e |StylePos|, Curren|
|00001310| 74 53 74 79 6c 65 29 3b | 0d 0a 09 09 09 53 20 3d |tStyle);|.....S =|
|00001320| 20 4d 69 64 28 55 57 69 | 6e 64 6f 77 48 54 4d 4c | Mid(UWi|ndowHTML|
|00001330| 54 65 78 74 52 6f 77 28 | 4c 29 2e 44 69 73 70 6c |TextRow(|L).Displ|
|00001340| 61 79 53 74 72 69 6e 67 | 2c 20 44 69 73 70 6c 61 |ayString|, Displa|
|00001350| 79 50 6f 73 2c 20 69 29 | 3b 0d 0a 09 09 09 44 69 |yPos, i)|;.....Di|
|00001360| 73 70 6c 61 79 50 6f 73 | 20 2b 3d 20 69 3b 09 09 |splayPos| += i;..|
|00001370| 09 09 09 0d 0a 09 09 09 | 53 65 74 43 61 6e 76 61 |........|SetCanva|
|00001380| 73 53 74 79 6c 65 28 43 | 2c 20 43 75 72 72 65 6e |sStyle(C|, Curren|
|00001390| 74 53 74 79 6c 65 29 3b | 0d 0a 0d 0a 09 09 09 54 |tStyle);|.......T|
|000013a0| 65 78 74 41 72 65 61 54 | 65 78 74 53 69 7a 65 28 |extAreaT|extSize(|
|000013b0| 43 2c 20 53 2c 20 57 2c | 20 48 29 3b 0d 0a 09 09 |C, S, W,| H);....|
|000013c0| 09 69 66 28 48 20 3e 20 | 52 6f 77 48 65 69 67 68 |.if(H > |RowHeigh|
|000013d0| 74 29 0d 0a 09 09 09 09 | 52 6f 77 48 65 69 67 68 |t)......|RowHeigh|
|000013e0| 74 20 3d 20 48 3b 0d 0a | 0d 0a 09 09 09 69 66 28 |t = H;..|.....if(|
|000013f0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 4c 69 |CurrentS|tyle.bLi|
|00001400| 6e 6b 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 47 |nk).....|{......G|
|00001410| 65 74 4d 6f 75 73 65 58 | 59 28 4d 6f 75 73 65 58 |etMouseX|Y(MouseX|
|00001420| 2c 20 4d 6f 75 73 65 59 | 29 3b 0d 0a 09 09 09 09 |, MouseY|);......|
|00001430| 69 66 28 58 20 3c 20 4d | 6f 75 73 65 58 20 26 26 |if(X < M|ouseX &&|
|00001440| 20 58 20 2b 20 57 20 3e | 20 4d 6f 75 73 65 58 20 | X + W >| MouseX |
|00001450| 26 26 20 59 20 3c 20 4d | 6f 75 73 65 59 20 26 26 |&& Y < M|ouseY &&|
|00001460| 20 59 20 2b 20 48 20 3e | 20 4d 6f 75 73 65 59 29 | Y + H >| MouseY)|
|00001470| 0d 0a 09 09 09 09 7b 0d | 0a 09 09 09 09 09 43 75 |......{.|......Cu|
|00001480| 72 73 6f 72 20 3d 20 52 | 6f 6f 74 2e 48 61 6e 64 |rsor = R|oot.Hand|
|00001490| 43 75 72 73 6f 72 3b 0d | 0a 09 09 09 09 09 4f 76 |Cursor;.|......Ov|
|000014a0| 65 72 55 52 4c 28 43 75 | 72 72 65 6e 74 53 74 79 |erURL(Cu|rrentSty|
|000014b0| 6c 65 2e 4c 69 6e 6b 44 | 65 73 74 69 6e 61 74 69 |le.LinkD|estinati|
|000014c0| 6f 6e 29 3b 0d 0a 0d 0a | 09 09 09 09 09 69 66 28 |on);....|.....if(|
|000014d0| 62 4d 6f 75 73 65 44 6f | 77 6e 20 7c 7c 20 62 52 |bMouseDo|wn || bR|
|000014e0| 65 6c 65 61 73 65 64 29 | 0d 0a 09 09 09 09 09 7b |eleased)|.......{|
|000014f0| 0d 0a 09 09 09 09 09 09 | 69 66 28 62 52 65 6c 65 |........|if(bRele|
|00001500| 61 73 65 64 29 0d 0a 09 | 09 09 09 09 09 7b 0d 0a |ased)...|.....{..|
|00001510| 09 09 09 09 09 09 09 50 | 72 6f 63 65 73 73 55 52 |.......P|rocessUR|
|00001520| 4c 28 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 4c |L(Curren|tStyle.L|
|00001530| 69 6e 6b 44 65 73 74 69 | 6e 61 74 69 6f 6e 29 3b |inkDesti|nation);|
|00001540| 0d 0a 09 09 09 09 09 09 | 09 62 52 65 6c 65 61 73 |........|.bReleas|
|00001550| 65 64 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 09 |ed = Fal|se;.....|
|00001560| 09 09 09 7d 0d 0a 09 09 | 09 09 09 09 65 6c 73 65 |...}....|....else|
|00001570| 0d 0a 09 09 09 09 09 09 | 09 43 2e 44 72 61 77 43 |........|.C.DrawC|
|00001580| 6f 6c 6f 72 20 3d 20 41 | 4c 69 6e 6b 43 6f 6c 6f |olor = A|LinkColo|
|00001590| 72 3b 0d 0a 09 09 09 09 | 09 7d 0d 0a 09 09 09 09 |r;......|.}......|
|000015a0| 7d 0d 0a 09 09 09 7d 0d | 0a 0d 0a 09 09 09 69 66 |}.....}.|......if|
|000015b0| 28 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 42 47 |(Current|Style.BG|
|000015c0| 43 6f 6c 6f 72 20 21 3d | 20 42 47 43 6f 6c 6f 72 |Color !=| BGColor|
|000015d0| 29 0d 0a 09 09 09 7b 09 | 0d 0a 09 09 09 09 4f 6c |).....{.|......Ol|
|000015e0| 64 43 6f 6c 6f 72 20 3d | 20 43 2e 44 72 61 77 43 |dColor =| C.DrawC|
|000015f0| 6f 6c 6f 72 3b 0d 0a 09 | 09 09 09 43 2e 44 72 61 |olor;...|...C.Dra|
|00001600| 77 43 6f 6c 6f 72 20 3d | 20 43 75 72 72 65 6e 74 |wColor =| Current|
|00001610| 53 74 79 6c 65 2e 42 47 | 43 6f 6c 6f 72 3b 0d 0a |Style.BG|Color;..|
|00001620| 09 09 09 09 44 72 61 77 | 53 74 72 65 74 63 68 65 |....Draw|Stretche|
|00001630| 64 54 65 78 74 75 72 65 | 28 43 2c 20 58 2c 20 59 |dTexture|(C, X, Y|
|00001640| 2c 20 57 2c 20 48 2c 20 | 54 65 78 74 75 72 65 27 |, W, H, |Texture'|
|00001650| 57 68 69 74 65 54 65 78 | 74 75 72 65 27 29 3b 0d |WhiteTex|ture');.|
|00001660| 0a 09 09 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|00001670| 20 3d 20 4f 6c 64 43 6f | 6c 6f 72 3b 0d 0a 09 09 | = OldCo|lor;....|
|00001680| 09 7d 0d 0a 09 09 09 69 | 66 28 21 43 75 72 72 65 |.}.....i|f(!Curre|
|00001690| 6e 74 53 74 79 6c 65 2e | 62 42 6c 69 6e 6b 20 7c |ntStyle.|bBlink ||
|000016a0| 7c 20 62 53 68 6f 77 42 | 6c 69 6e 6b 29 0d 0a 09 || bShowB|link)...|
|000016b0| 09 09 09 54 65 78 74 41 | 72 65 61 43 6c 69 70 54 |...TextA|reaClipT|
|000016c0| 65 78 74 28 43 2c 20 58 | 2c 20 59 2c 20 53 29 3b |ext(C, X|, Y, S);|
|000016d0| 0d 0a 09 09 09 69 66 28 | 43 75 72 72 65 6e 74 53 |.....if(|CurrentS|
|000016e0| 74 79 6c 65 2e 62 4c 69 | 6e 6b 20 7c 7c 20 43 75 |tyle.bLi|nk || Cu|
|000016f0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 55 6e 64 65 |rrentSty|le.bUnde|
|00001700| 72 6c 69 6e 65 29 0d 0a | 09 09 09 09 44 72 61 77 |rline)..|....Draw|
|00001710| 53 74 72 65 74 63 68 65 | 64 54 65 78 74 75 72 65 |Stretche|dTexture|
|00001720| 28 43 2c 20 58 2c 20 59 | 2b 48 2d 31 2c 20 57 2c |(C, X, Y|+H-1, W,|
|00001730| 20 31 2c 20 54 65 78 74 | 75 72 65 27 57 68 69 74 | 1, Text|ure'Whit|
|00001740| 65 54 65 78 74 75 72 65 | 27 29 3b 0d 0a 0d 0a 09 |eTexture|');.....|
|00001750| 09 09 58 20 2b 3d 20 57 | 3b 0d 0a 09 09 7d 0d 0a |..X += W|;....}..|
|00001760| 09 7d 0d 0a 09 69 66 28 | 52 6f 77 48 65 69 67 68 |.}...if(|RowHeigh|
|00001770| 74 20 3d 3d 20 30 29 0d | 0a 09 09 54 65 78 74 41 |t == 0).|...TextA|
|00001780| 72 65 61 54 65 78 74 53 | 69 7a 65 28 43 2c 20 22 |reaTextS|ize(C, "|
|00001790| 41 22 2c 20 57 2c 20 52 | 6f 77 48 65 69 67 68 74 |A", W, R|owHeight|
|000017a0| 29 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 52 6f |);.....r|eturn Ro|
|000017b0| 77 48 65 69 67 68 74 3b | 0d 0a 7d 0d 0a 0d 0a 66 |wHeight;|..}....f|
|000017c0| 75 6e 63 74 69 6f 6e 20 | 55 57 69 6e 64 6f 77 44 |unction |UWindowD|
|000017d0| 79 6e 61 6d 69 63 54 65 | 78 74 52 6f 77 20 53 70 |ynamicTe|xtRow Sp|
|000017e0| 6c 69 74 52 6f 77 41 74 | 28 55 57 69 6e 64 6f 77 |litRowAt|(UWindow|
|000017f0| 44 79 6e 61 6d 69 63 54 | 65 78 74 52 6f 77 20 4c |DynamicT|extRow L|
|00001800| 2c 20 69 6e 74 20 53 70 | 6c 69 74 50 6f 73 29 0d |, int Sp|litPos).|
|00001810| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 55 57 69 6e 64 |.{...loc|al UWind|
|00001820| 6f 77 44 79 6e 61 6d 69 | 63 54 65 78 74 52 6f 77 |owDynami|cTextRow|
|00001830| 20 4e 3b 0d 0a 09 6c 6f | 63 61 6c 20 48 54 4d 4c | N;...lo|cal HTML|
|00001840| 53 74 79 6c 65 20 43 75 | 72 72 65 6e 74 53 74 79 |Style Cu|rrentSty|
|00001850| 6c 65 3b 0d 0a 0d 0a 09 | 4e 20 3d 20 53 75 70 65 |le;.....|N = Supe|
|00001860| 72 2e 53 70 6c 69 74 52 | 6f 77 41 74 28 4c 2c 20 |r.SplitR|owAt(L, |
|00001870| 53 70 6c 69 74 50 6f 73 | 29 3b 0d 0a 0d 0a 09 2f |SplitPos|);...../|
|00001880| 2f 20 75 70 64 61 74 65 | 20 74 68 65 20 73 74 79 |/ update| the sty|
|00001890| 6c 65 20 62 79 20 70 72 | 6f 63 65 73 73 69 6e 67 |le by pr|ocessing|
|000018a0| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 61 72 74 20 | from th|e start |
|000018b0| 6f 66 20 4c 20 74 6f 20 | 74 68 65 20 73 70 6c 69 |of L to |the spli|
|000018c0| 74 20 70 6f 73 69 74 69 | 6f 6e 2e 0d 0a 09 55 57 |t positi|on....UW|
|000018d0| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|000018e0| 28 4e 29 2e 45 6e 64 53 | 74 79 6c 65 20 3d 20 55 |(N).EndS|tyle = U|
|000018f0| 57 69 6e 64 6f 77 48 54 | 4d 4c 54 65 78 74 52 6f |WindowHT|MLTextRo|
|00001900| 77 28 4c 29 2e 45 6e 64 | 53 74 79 6c 65 3b 0d 0a |w(L).End|Style;..|
|00001910| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 20 3d 20 |.Current|Style = |
|00001920| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00001930| 6f 77 28 4c 29 2e 53 74 | 61 72 74 53 74 79 6c 65 |ow(L).St|artStyle|
|00001940| 3b 0d 0a 09 48 54 4d 4c | 55 70 64 61 74 65 53 74 |;...HTML|UpdateSt|
|00001950| 79 6c 65 28 4c 2e 54 65 | 78 74 2c 20 43 75 72 72 |yle(L.Te|xt, Curr|
|00001960| 65 6e 74 53 74 79 6c 65 | 29 3b 0d 0a 09 55 57 69 |entStyle|);...UWi|
|00001970| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00001980| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 20 3d 20 43 75 |L).EndSt|yle = Cu|
|00001990| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 55 57 |rrentSty|le;...UW|
|000019a0| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|000019b0| 28 4e 29 2e 53 74 61 72 | 74 53 74 79 6c 65 20 3d |(N).Star|tStyle =|
|000019c0| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 3b 0d 0a | Current|Style;..|
|000019d0| 0d 0a 09 72 65 74 75 72 | 6e 20 4e 3b 0d 0a 7d 0d |...retur|n N;..}.|
|000019e0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 52 65 6d 6f |...funct|ion Remo|
|000019f0| 76 65 57 72 61 70 28 55 | 57 69 6e 64 6f 77 44 79 |veWrap(U|WindowDy|
|00001a00| 6e 61 6d 69 63 54 65 78 | 74 52 6f 77 20 4c 29 0d |namicTex|tRow L).|
|00001a10| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 55 57 69 6e 64 |.{...loc|al UWind|
|00001a20| 6f 77 44 79 6e 61 6d 69 | 63 54 65 78 74 52 6f 77 |owDynami|cTextRow|
|00001a30| 20 4e 3b 0d 0a 0d 0a 09 | 2f 2f 20 63 6f 70 79 20 | N;.....|// copy |
|00001a40| 66 69 6e 61 6c 20 65 6e | 64 73 74 79 6c 65 20 74 |final en|dstyle t|
|00001a50| 6f 20 63 75 72 72 65 6e | 74 20 72 6f 77 0d 0a 09 |o curren|t row...|
|00001a60| 4e 20 3d 20 55 57 69 6e | 64 6f 77 44 79 6e 61 6d |N = UWin|dowDynam|
|00001a70| 69 63 54 65 78 74 52 6f | 77 28 4c 2e 4e 65 78 74 |icTextRo|w(L.Next|
|00001a80| 29 3b 0d 0a 09 77 68 69 | 6c 65 28 4e 20 21 3d 20 |);...whi|le(N != |
|00001a90| 4e 6f 6e 65 20 26 26 20 | 4e 2e 57 72 61 70 50 61 |None && |N.WrapPa|
|00001aa0| 72 65 6e 74 20 3d 3d 20 | 4c 29 0d 0a 09 7b 0d 0a |rent == |L)...{..|
|00001ab0| 09 09 55 57 69 6e 64 6f | 77 48 54 4d 4c 54 65 78 |..UWindo|wHTMLTex|
|00001ac0| 74 52 6f 77 28 4c 29 2e | 45 6e 64 53 74 79 6c 65 |tRow(L).|EndStyle|
|00001ad0| 20 3d 20 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 | = UWind|owHTMLTe|
|00001ae0| 78 74 52 6f 77 28 4e 29 | 2e 45 6e 64 53 74 79 6c |xtRow(N)|.EndStyl|
|00001af0| 65 3b 0d 0a 09 09 4e 20 | 3d 20 55 57 69 6e 64 6f |e;....N |= UWindo|
|00001b00| 77 44 79 6e 61 6d 69 63 | 54 65 78 74 52 6f 77 28 |wDynamic|TextRow(|
|00001b10| 4e 2e 4e 65 78 74 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |N.Next);|...}....|
|00001b20| 09 53 75 70 65 72 2e 52 | 65 6d 6f 76 65 57 72 61 |.Super.R|emoveWra|
|00001b30| 70 28 4c 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |p(L);..}|....func|
|00001b40| 74 69 6f 6e 20 69 6e 74 | 20 47 65 74 57 72 61 70 |tion int| GetWrap|
|00001b50| 50 6f 73 28 43 61 6e 76 | 61 73 20 43 2c 20 55 57 |Pos(Canv|as C, UW|
|00001b60| 69 6e 64 6f 77 44 79 6e | 61 6d 69 63 54 65 78 74 |indowDyn|amicText|
|00001b70| 52 6f 77 20 4c 2c 20 66 | 6c 6f 61 74 20 4d 61 78 |Row L, f|loat Max|
|00001b80| 57 69 64 74 68 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Width)..|{...loca|
|00001b90| 6c 20 66 6c 6f 61 74 20 | 4c 69 6e 65 57 69 64 74 |l float |LineWidt|
|00001ba0| 68 2c 20 4e 65 78 74 57 | 6f 72 64 57 69 64 74 68 |h, NextW|ordWidth|
|00001bb0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |;...loca|l string|
|00001bc0| 20 49 6e 70 75 74 2c 20 | 4e 65 78 74 57 6f 72 64 | Input, |NextWord|
|00001bd0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 57 6f |;...loca|l int Wo|
|00001be0| 72 64 73 54 68 69 73 52 | 6f 77 2c 20 57 72 61 70 |rdsThisR|ow, Wrap|
|00001bf0| 50 6f 73 3b 0d 0a 09 6c | 6f 63 61 6c 20 48 54 4d |Pos;...l|ocal HTM|
|00001c00| 4c 53 74 79 6c 65 20 43 | 75 72 72 65 6e 74 53 74 |LStyle C|urrentSt|
|00001c10| 79 6c 65 3b 0d 0a 0d 0a | 09 43 75 72 72 65 6e 74 |yle;....|.Current|
|00001c20| 53 74 79 6c 65 20 3d 20 | 55 57 69 6e 64 6f 77 48 |Style = |UWindowH|
|00001c30| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 53 74 |TMLTextR|ow(L).St|
|00001c40| 61 72 74 53 74 79 6c 65 | 3b 0d 0a 0d 0a 09 2f 2f |artStyle|;.....//|
|00001c50| 20 71 75 69 63 6b 20 63 | 68 65 63 6b 0d 0a 09 69 | quick c|heck...i|
|00001c60| 66 28 43 61 6c 63 48 54 | 4d 4c 54 65 78 74 57 69 |f(CalcHT|MLTextWi|
|00001c70| 64 74 68 28 43 2c 20 4c | 2e 54 65 78 74 2c 20 43 |dth(C, L|.Text, C|
|00001c80| 75 72 72 65 6e 74 53 74 | 79 6c 65 29 20 3c 3d 20 |urrentSt|yle) <= |
|00001c90| 4d 61 78 57 69 64 74 68 | 29 0d 0a 09 09 72 65 74 |MaxWidth|)....ret|
|00001ca0| 75 72 6e 20 2d 31 3b 0d | 0a 0d 0a 09 49 6e 70 75 |urn -1;.|....Inpu|
|00001cb0| 74 20 3d 20 4c 2e 54 65 | 78 74 3b 0d 0a 09 57 6f |t = L.Te|xt;...Wo|
|00001cc0| 72 64 73 54 68 69 73 52 | 6f 77 20 3d 20 30 3b 0d |rdsThisR|ow = 0;.|
|00001cd0| 0a 09 4c 69 6e 65 57 69 | 64 74 68 20 3d 20 30 3b |..LineWi|dth = 0;|
|00001ce0| 0d 0a 09 57 72 61 70 50 | 6f 73 20 3d 20 30 3b 0d |...WrapP|os = 0;.|
|00001cf0| 0a 09 4e 65 78 74 57 6f | 72 64 20 3d 20 22 22 3b |..NextWo|rd = "";|
|00001d00| 0d 0a 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 20 |...Curre|ntStyle |
|00001d10| 3d 20 55 57 69 6e 64 6f | 77 48 54 4d 4c 54 65 78 |= UWindo|wHTMLTex|
|00001d20| 74 52 6f 77 28 4c 29 2e | 53 74 61 72 74 53 74 79 |tRow(L).|StartSty|
|00001d30| 6c 65 3b 0d 0a 0d 0a 09 | 77 68 69 6c 65 28 49 6e |le;.....|while(In|
|00001d40| 70 75 74 20 21 3d 20 22 | 22 20 7c 7c 20 4e 65 78 |put != "|" || Nex|
|00001d50| 74 57 6f 72 64 20 21 3d | 20 22 22 29 0d 0a 09 7b |tWord !=| "")...{|
|00001d60| 0d 0a 09 09 69 66 28 4e | 65 78 74 57 6f 72 64 20 |....if(N|extWord |
|00001d70| 3d 3d 20 22 22 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |== "")..|..{.....|
|00001d80| 52 65 6d 6f 76 65 4e 65 | 78 74 57 6f 72 64 28 49 |RemoveNe|xtWord(I|
|00001d90| 6e 70 75 74 2c 20 4e 65 | 78 74 57 6f 72 64 29 3b |nput, Ne|xtWord);|
|00001da0| 0d 0a 09 09 09 4e 65 78 | 74 57 6f 72 64 57 69 64 |.....Nex|tWordWid|
|00001db0| 74 68 20 3d 20 43 61 6c | 63 48 54 4d 4c 54 65 78 |th = Cal|cHTMLTex|
|00001dc0| 74 57 69 64 74 68 28 43 | 2c 20 4e 65 78 74 57 6f |tWidth(C|, NextWo|
|00001dd0| 72 64 2c 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |rd, Curr|entStyle|
|00001de0| 29 3b 0d 0a 09 09 7d 0d | 0a 09 09 69 66 28 57 6f |);....}.|...if(Wo|
|00001df0| 72 64 73 54 68 69 73 52 | 6f 77 20 3e 20 30 20 26 |rdsThisR|ow > 0 &|
|00001e00| 26 20 4c 69 6e 65 57 69 | 64 74 68 20 2b 20 4e 65 |& LineWi|dth + Ne|
|00001e10| 78 74 57 6f 72 64 57 69 | 64 74 68 20 3e 20 4d 61 |xtWordWi|dth > Ma|
|00001e20| 78 57 69 64 74 68 29 0d | 0a 09 09 7b 0d 0a 09 09 |xWidth).|...{....|
|00001e30| 09 72 65 74 75 72 6e 20 | 57 72 61 70 50 6f 73 3b |.return |WrapPos;|
|00001e40| 0d 0a 09 09 7d 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |....}...|.else...|
|00001e50| 09 7b 0d 0a 09 09 09 57 | 72 61 70 50 6f 73 20 2b |.{.....W|rapPos +|
|00001e60| 3d 20 4c 65 6e 28 4e 65 | 78 74 57 6f 72 64 29 3b |= Len(Ne|xtWord);|
|00001e70| 0d 0a 09 09 09 4c 69 6e | 65 57 69 64 74 68 20 2b |.....Lin|eWidth +|
|00001e80| 3d 20 4e 65 78 74 57 6f | 72 64 57 69 64 74 68 3b |= NextWo|rdWidth;|
|00001e90| 0d 0a 09 09 09 4e 65 78 | 74 57 6f 72 64 20 3d 20 |.....Nex|tWord = |
|00001ea0| 22 22 3b 0d 0a 09 09 09 | 57 6f 72 64 73 54 68 69 |"";.....|WordsThi|
|00001eb0| 73 52 6f 77 2b 2b 3b 0d | 0a 09 09 7d 0d 0a 09 7d |sRow++;.|...}...}|
|00001ec0| 0d 0a 09 72 65 74 75 72 | 6e 20 2d 31 3b 0d 0a 7d |...retur|n -1;..}|
|00001ed0| 0d 0a 0d 0a 2f 2f 20 46 | 69 6e 64 20 74 68 65 20 |....// F|ind the |
|00001ee0| 6e 65 78 74 20 77 6f 72 | 64 20 2d 20 62 75 74 20 |next wor|d - but |
|00001ef0| 64 6f 6e 27 74 20 73 70 | 6c 69 74 20 75 70 20 48 |don't sp|lit up H|
|00001f00| 54 4d 4c 20 74 61 67 73 | 2e 0d 0a 66 75 6e 63 74 |TML tags|...funct|
|00001f10| 69 6f 6e 20 52 65 6d 6f | 76 65 4e 65 78 74 57 6f |ion Remo|veNextWo|
|00001f20| 72 64 28 6f 75 74 20 73 | 74 72 69 6e 67 20 54 65 |rd(out s|tring Te|
|00001f30| 78 74 2c 20 6f 75 74 20 | 73 74 72 69 6e 67 20 4e |xt, out |string N|
|00001f40| 65 78 74 57 6f 72 64 29 | 0d 0a 7b 0d 0a 09 6c 6f |extWord)|..{...lo|
|00001f50| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 09 6c 6f 63 |cal int |i;...loc|
|00001f60| 61 6c 20 62 6f 6f 6c 20 | 62 49 6e 73 69 64 65 54 |al bool |bInsideT|
|00001f70| 61 67 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |ag;...lo|cal stri|
|00001f80| 6e 67 20 43 68 3b 0d 0a | 09 0d 0a 09 62 49 6e 73 |ng Ch;..|....bIns|
|00001f90| 69 64 65 54 61 67 20 3d | 20 46 61 6c 73 65 3b 0d |ideTag =| False;.|
|00001fa0| 0a 0d 0a 09 66 6f 72 28 | 69 3d 30 3b 69 3c 4c 65 |....for(|i=0;i<Le|
|00001fb0| 6e 28 54 65 78 74 29 3b | 69 2b 2b 29 0d 0a 09 7b |n(Text);|i++)...{|
|00001fc0| 0d 0a 09 09 43 68 20 3d | 20 4d 69 64 28 54 65 78 |....Ch =| Mid(Tex|
|00001fd0| 74 2c 20 69 2c 20 31 29 | 3b 0d 0a 09 09 69 66 28 |t, i, 1)|;....if(|
|00001fe0| 43 68 20 3d 3d 20 22 3e | 22 29 0d 0a 09 09 09 62 |Ch == ">|").....b|
|00001ff0| 49 6e 73 69 64 65 54 61 | 67 20 3d 20 46 61 6c 73 |InsideTa|g = Fals|
|00002000| 65 3b 0d 0a 09 09 69 66 | 28 43 68 20 3d 3d 20 22 |e;....if|(Ch == "|
|00002010| 3c 22 29 0d 0a 09 09 09 | 62 49 6e 73 69 64 65 54 |<").....|bInsideT|
|00002020| 61 67 20 3d 20 54 72 75 | 65 3b 0d 0a 09 09 69 66 |ag = Tru|e;....if|
|00002030| 28 43 68 20 3d 3d 20 22 | 20 22 20 26 26 20 21 62 |(Ch == "| " && !b|
|00002040| 49 6e 73 69 64 65 54 61 | 67 29 0d 0a 09 09 09 62 |InsideTa|g).....b|
|00002050| 72 65 61 6b 3b 0d 0a 09 | 7d 0d 0a 09 77 68 69 6c |reak;...|}...whil|
|00002060| 65 28 4d 69 64 28 54 65 | 78 74 2c 20 69 2c 20 31 |e(Mid(Te|xt, i, 1|
|00002070| 29 20 3d 3d 20 22 20 22 | 29 0d 0a 09 09 69 2b 2b |) == " "|)....i++|
|00002080| 3b 09 0d 0a 09 4e 65 78 | 74 57 6f 72 64 20 3d 20 |;....Nex|tWord = |
|00002090| 4c 65 66 74 28 54 65 78 | 74 2c 20 69 29 3b 0d 0a |Left(Tex|t, i);..|
|000020a0| 09 54 65 78 74 20 3d 20 | 4d 69 64 28 54 65 78 74 |.Text = |Mid(Text|
|000020b0| 2c 20 69 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |, i);..}|....func|
|000020c0| 74 69 6f 6e 20 55 57 69 | 6e 64 6f 77 44 79 6e 61 |tion UWi|ndowDyna|
|000020d0| 6d 69 63 54 65 78 74 52 | 6f 77 20 41 64 64 54 65 |micTextR|ow AddTe|
|000020e0| 78 74 28 73 74 72 69 6e | 67 20 4e 65 77 4c 69 6e |xt(strin|g NewLin|
|000020f0| 65 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |e)..{...|local st|
|00002100| 72 69 6e 67 20 49 6e 70 | 75 74 2c 20 4f 75 74 70 |ring Inp|ut, Outp|
|00002110| 75 74 2c 20 4c 65 66 74 | 54 65 78 74 2c 20 52 69 |ut, Left|Text, Ri|
|00002120| 67 68 74 54 65 78 74 2c | 20 48 54 4d 4c 2c 20 54 |ghtText,| HTML, T|
|00002130| 65 6d 70 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |emp;...l|ocal int|
|00002140| 20 69 3b 0d 0a 09 6c 6f | 63 61 6c 20 55 57 69 6e | i;...lo|cal UWin|
|00002150| 64 6f 77 44 79 6e 61 6d | 69 63 54 65 78 74 52 6f |dowDynam|icTextRo|
|00002160| 77 20 4c 3b 0d 0a 09 6c | 6f 63 61 6c 20 48 54 4d |w L;...l|ocal HTM|
|00002170| 4c 53 74 79 6c 65 20 43 | 75 72 72 65 6e 74 53 74 |LStyle C|urrentSt|
|00002180| 79 6c 65 2c 20 53 74 61 | 72 74 53 74 79 6c 65 3b |yle, Sta|rtStyle;|
|00002190| 0d 0a 0d 0a 09 69 66 28 | 4c 69 73 74 2e 4c 61 73 |.....if(|List.Las|
|000021a0| 74 20 3d 3d 20 4c 69 73 | 74 29 0d 0a 09 7b 0d 0a |t == Lis|t)...{..|
|000021b0| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 42 |..Curren|tStyle.B|
|000021c0| 75 6c 6c 65 74 4c 65 76 | 65 6c 20 3d 20 30 3b 0d |ulletLev|el = 0;.|
|000021d0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|000021e0| 4c 69 6e 6b 44 65 73 74 | 69 6e 61 74 69 6f 6e 20 |LinkDest|ination |
|000021f0| 3d 20 22 22 3b 0d 0a 09 | 09 43 75 72 72 65 6e 74 |= "";...|.Current|
|00002200| 53 74 79 6c 65 2e 54 65 | 78 74 43 6f 6c 6f 72 20 |Style.Te|xtColor |
|00002210| 3d 20 54 65 78 74 43 6f | 6c 6f 72 3b 0d 0a 09 09 |= TextCo|lor;....|
|00002220| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 42 47 43 |CurrentS|tyle.BGC|
|00002230| 6f 6c 6f 72 20 3d 20 42 | 47 43 6f 6c 6f 72 3b 0d |olor = B|GColor;.|
|00002240| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00002250| 62 43 65 6e 74 65 72 20 | 3d 20 62 48 43 65 6e 74 |bCenter |= bHCent|
|00002260| 65 72 3b 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |er;....C|urrentSt|
|00002270| 79 6c 65 2e 62 4c 69 6e | 6b 20 3d 20 46 61 6c 73 |yle.bLin|k = Fals|
|00002280| 65 3b 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |e;....Cu|rrentSty|
|00002290| 6c 65 2e 62 55 6e 64 65 | 72 6c 69 6e 65 20 3d 20 |le.bUnde|rline = |
|000022a0| 46 61 6c 73 65 3b 0d 0a | 09 09 43 75 72 72 65 6e |False;..|..Curren|
|000022b0| 74 53 74 79 6c 65 2e 62 | 4e 6f 42 52 20 3d 20 46 |tStyle.b|NoBR = F|
|000022c0| 61 6c 73 65 3b 0d 0a 09 | 09 43 75 72 72 65 6e 74 |alse;...|.Current|
|000022d0| 53 74 79 6c 65 2e 62 48 | 65 61 64 69 6e 67 20 3d |Style.bH|eading =|
|000022e0| 20 46 61 6c 73 65 3b 0d | 0a 09 09 43 75 72 72 65 | False;.|...Curre|
|000022f0| 6e 74 53 74 79 6c 65 2e | 62 42 6f 6c 64 20 3d 20 |ntStyle.|bBold = |
|00002300| 46 61 6c 73 65 3b 0d 0a | 09 09 43 75 72 72 65 6e |False;..|..Curren|
|00002310| 74 53 74 79 6c 65 2e 62 | 42 6c 69 6e 6b 20 3d 20 |tStyle.b|Blink = |
|00002320| 46 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |False;..|.}...els|
|00002330| 65 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |e....Cur|rentStyl|
|00002340| 65 20 3d 20 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |e = UWin|dowHTMLT|
|00002350| 65 78 74 52 6f 77 28 4c | 69 73 74 2e 4c 61 73 74 |extRow(L|ist.Last|
|00002360| 29 2e 45 6e 64 53 74 79 | 6c 65 3b 0d 0a 09 53 74 |).EndSty|le;...St|
|00002370| 61 72 74 53 74 79 6c 65 | 20 3d 20 43 75 72 72 65 |artStyle| = Curre|
|00002380| 6e 74 53 74 79 6c 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |ntStyle;|.....// |
|00002390| 63 6f 6e 76 65 72 74 20 | 5c 5c 6e 27 73 20 2d 3e |convert |\\n's ->|
|000023a0| 20 3c 62 72 3e 27 73 0d | 0a 09 69 20 3d 20 49 6e | <br>'s.|..i = In|
|000023b0| 53 74 72 28 4e 65 77 4c | 69 6e 65 2c 20 22 5c 5c |Str(NewL|ine, "\\|
|000023c0| 6e 22 29 3b 0d 0a 09 77 | 68 69 6c 65 28 69 20 21 |n");...w|hile(i !|
|000023d0| 3d 20 2d 31 29 0d 0a 09 | 7b 0d 0a 09 09 4e 65 77 |= -1)...|{....New|
|000023e0| 4c 69 6e 65 20 3d 20 4c | 65 66 74 28 4e 65 77 4c |Line = L|eft(NewL|
|000023f0| 69 6e 65 2c 20 69 29 20 | 24 20 22 3c 62 72 3e 22 |ine, i) |$ "<br>"|
|00002400| 20 24 20 4d 69 64 28 4e | 65 77 4c 69 6e 65 2c 20 | $ Mid(N|ewLine, |
|00002410| 69 20 2b 20 32 29 3b 0d | 0a 09 09 69 20 3d 20 49 |i + 2);.|...i = I|
|00002420| 6e 53 74 72 28 4e 65 77 | 4c 69 6e 65 2c 20 22 5c |nStr(New|Line, "\|
|00002430| 5c 6e 22 29 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 49 6e |\n");...|}.....In|
|00002440| 70 75 74 20 3d 20 4e 65 | 77 4c 69 6e 65 3b 0d 0a |put = Ne|wLine;..|
|00002450| 09 4f 75 74 70 75 74 20 | 3d 20 22 22 3b 0d 0a 09 |.Output |= "";...|
|00002460| 77 68 69 6c 65 28 49 6e | 70 75 74 20 21 3d 20 22 |while(In|put != "|
|00002470| 22 29 0d 0a 09 7b 0d 0a | 09 09 50 61 72 73 65 48 |")...{..|..ParseH|
|00002480| 54 4d 4c 28 49 6e 70 75 | 74 2c 20 4c 65 66 74 54 |TML(Inpu|t, LeftT|
|00002490| 65 78 74 2c 20 48 54 4d | 4c 2c 20 52 69 67 68 74 |ext, HTM|L, Right|
|000024a0| 54 65 78 74 29 3b 0d 0a | 09 09 0d 0a 09 09 73 77 |Text);..|......sw|
|000024b0| 69 74 63 68 28 47 65 74 | 54 61 67 28 48 54 4d 4c |itch(Get|Tag(HTML|
|000024c0| 29 29 0d 0a 09 09 7b 0d | 0a 09 09 2f 2f 20 6d 75 |))....{.|...// mu|
|000024d0| 6c 74 69 6c 69 6e 65 20 | 48 54 4d 4c 20 74 61 67 |ltiline |HTML tag|
|000024e0| 73 0d 0a 09 09 63 61 73 | 65 20 22 50 22 3a 0d 0a |s....cas|e "P":..|
|000024f0| 09 09 09 69 66 28 28 4f | 75 74 70 75 74 20 24 20 |...if((O|utput $ |
|00002500| 4c 65 66 74 54 65 78 74 | 29 20 21 3d 20 22 22 29 |LeftText|) != "")|
|00002510| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 4c 20 3d 20 |.....{..|....L = |
|00002520| 53 75 70 65 72 2e 41 64 | 64 54 65 78 74 28 4f 75 |Super.Ad|dText(Ou|
|00002530| 74 70 75 74 20 24 20 4c | 65 66 74 54 65 78 74 29 |tput $ L|eftText)|
|00002540| 3b 0d 0a 09 09 09 09 4f | 75 74 70 75 74 20 3d 20 |;......O|utput = |
|00002550| 22 22 3b 0d 0a 09 09 09 | 09 55 57 69 6e 64 6f 77 |"";.....|.UWindow|
|00002560| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00002570| 74 61 72 74 53 74 79 6c | 65 20 3d 20 53 74 61 72 |tartStyl|e = Star|
|00002580| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 09 55 57 69 |tStyle;.|.....UWi|
|00002590| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|000025a0| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 20 3d 20 43 75 |L).EndSt|yle = Cu|
|000025b0| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|000025c0| 7d 0d 0a 09 09 09 53 74 | 61 72 74 53 74 79 6c 65 |}.....St|artStyle|
|000025d0| 20 3d 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 3b | = Curre|ntStyle;|
|000025e0| 0d 0a 09 09 09 4c 20 3d | 20 53 75 70 65 72 2e 41 |.....L =| Super.A|
|000025f0| 64 64 54 65 78 74 28 22 | 22 29 3b 0d 0a 09 09 09 |ddText("|");.....|
|00002600| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00002610| 6f 77 28 4c 29 2e 53 74 | 61 72 74 53 74 79 6c 65 |ow(L).St|artStyle|
|00002620| 20 3d 20 53 74 61 72 74 | 53 74 79 6c 65 3b 0d 0a | = Start|Style;..|
|00002630| 09 09 09 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 |...UWind|owHTMLTe|
|00002640| 78 74 52 6f 77 28 4c 29 | 2e 45 6e 64 53 74 79 6c |xtRow(L)|.EndStyl|
|00002650| 65 20 3d 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |e = Curr|entStyle|
|00002660| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|00002670| 63 61 73 65 20 22 42 52 | 22 3a 0d 0a 09 09 09 4c |case "BR|":.....L|
|00002680| 20 3d 20 53 75 70 65 72 | 2e 41 64 64 54 65 78 74 | = Super|.AddText|
|00002690| 28 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 |(Output |$ LeftTe|
|000026a0| 78 74 29 3b 0d 0a 09 09 | 09 4f 75 74 70 75 74 20 |xt);....|.Output |
|000026b0| 3d 20 22 22 3b 0d 0a 09 | 09 09 55 57 69 6e 64 6f |= "";...|..UWindo|
|000026c0| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|000026d0| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 53 74 61 |StartSty|le = Sta|
|000026e0| 72 74 53 74 79 6c 65 3b | 0d 0a 09 09 09 55 57 69 |rtStyle;|.....UWi|
|000026f0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00002700| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 20 3d 20 43 75 |L).EndSt|yle = Cu|
|00002710| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002720| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 43 75 72 |StartSty|le = Cur|
|00002730| 72 65 6e 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 62 |rentStyl|e;.....b|
|00002740| 72 65 61 6b 3b 0d 0a 09 | 09 63 61 73 65 20 22 42 |reak;...|.case "B|
|00002750| 4f 44 59 22 3a 0d 0a 09 | 09 09 54 65 6d 70 20 3d |ODY":...|..Temp =|
|00002760| 20 47 65 74 4f 70 74 69 | 6f 6e 28 48 54 4d 4c 2c | GetOpti|on(HTML,|
|00002770| 20 22 42 47 43 4f 4c 4f | 52 3d 22 29 3b 0d 0a 09 | "BGCOLO|R=");...|
|00002780| 09 09 69 66 28 54 65 6d | 70 20 21 3d 20 22 22 29 |..if(Tem|p != "")|
|00002790| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 42 47 43 6f |.....{..|....BGCo|
|000027a0| 6c 6f 72 20 3d 20 50 61 | 72 73 65 43 6f 6c 6f 72 |lor = Pa|rseColor|
|000027b0| 28 54 65 6d 70 29 3b 0d | 0a 09 09 09 09 43 75 72 |(Temp);.|.....Cur|
|000027c0| 72 65 6e 74 53 74 79 6c | 65 2e 42 47 43 6f 6c 6f |rentStyl|e.BGColo|
|000027d0| 72 20 3d 20 42 47 43 6f | 6c 6f 72 3b 0d 0a 09 09 |r = BGCo|lor;....|
|000027e0| 09 09 53 74 61 72 74 53 | 74 79 6c 65 2e 42 47 43 |..StartS|tyle.BGC|
|000027f0| 6f 6c 6f 72 20 3d 20 42 | 47 43 6f 6c 6f 72 3b 0d |olor = B|GColor;.|
|00002800| 0a 09 09 09 7d 0d 0a 0d | 0a 09 09 09 54 65 6d 70 |....}...|....Temp|
|00002810| 20 3d 20 47 65 74 4f 70 | 74 69 6f 6e 28 48 54 4d | = GetOp|tion(HTM|
|00002820| 4c 2c 20 22 4c 49 4e 4b | 3d 22 29 3b 0d 0a 09 09 |L, "LINK|=");....|
|00002830| 09 69 66 28 54 65 6d 70 | 20 21 3d 20 22 22 29 0d |.if(Temp| != "").|
|00002840| 0a 09 09 09 09 4c 69 6e | 6b 43 6f 6c 6f 72 20 3d |.....Lin|kColor =|
|00002850| 20 50 61 72 73 65 43 6f | 6c 6f 72 28 54 65 6d 70 | ParseCo|lor(Temp|
|00002860| 29 3b 0d 0a 0d 0a 09 09 | 09 54 65 6d 70 20 3d 20 |);......|.Temp = |
|00002870| 47 65 74 4f 70 74 69 6f | 6e 28 48 54 4d 4c 2c 20 |GetOptio|n(HTML, |
|00002880| 22 41 4c 49 4e 4b 3d 22 | 29 3b 0d 0a 09 09 09 69 |"ALINK="|);.....i|
|00002890| 66 28 54 65 6d 70 20 21 | 3d 20 22 22 29 0d 0a 09 |f(Temp !|= "")...|
|000028a0| 09 09 09 41 4c 69 6e 6b | 43 6f 6c 6f 72 20 3d 20 |...ALink|Color = |
|000028b0| 50 61 72 73 65 43 6f 6c | 6f 72 28 54 65 6d 70 29 |ParseCol|or(Temp)|
|000028c0| 3b 0d 0a 0d 0a 09 09 09 | 54 65 6d 70 20 3d 20 47 |;.......|Temp = G|
|000028d0| 65 74 4f 70 74 69 6f 6e | 28 48 54 4d 4c 2c 20 22 |etOption|(HTML, "|
|000028e0| 54 45 58 54 3d 22 29 3b | 0d 0a 09 09 09 69 66 28 |TEXT=");|.....if(|
|000028f0| 54 65 6d 70 20 21 3d 20 | 22 22 29 0d 0a 09 09 09 |Temp != |"").....|
|00002900| 7b 0d 0a 09 09 09 09 54 | 65 78 74 43 6f 6c 6f 72 |{......T|extColor|
|00002910| 20 3d 20 50 61 72 73 65 | 43 6f 6c 6f 72 28 54 65 | = Parse|Color(Te|
|00002920| 6d 70 29 3b 0d 0a 09 09 | 09 09 43 75 72 72 65 6e |mp);....|..Curren|
|00002930| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|00002940| 20 3d 20 54 65 78 74 43 | 6f 6c 6f 72 3b 0d 0a 09 | = TextC|olor;...|
|00002950| 09 09 7d 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |..}.....|Output =|
|00002960| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 | Output |$ LeftTe|
|00002970| 78 74 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |xt;.....|break;..|
|00002980| 09 09 63 61 73 65 20 22 | 43 45 4e 54 45 52 22 3a |..case "|CENTER":|
|00002990| 0d 0a 09 09 09 69 66 28 | 28 4f 75 74 70 75 74 20 |.....if(|(Output |
|000029a0| 24 20 4c 65 66 74 54 65 | 78 74 29 20 21 3d 20 22 |$ LeftTe|xt) != "|
|000029b0| 22 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 4c 20 |").....{|......L |
|000029c0| 3d 20 53 75 70 65 72 2e | 41 64 64 54 65 78 74 28 |= Super.|AddText(|
|000029d0| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 54 65 78 |Output $| LeftTex|
|000029e0| 74 29 3b 0d 0a 09 09 09 | 09 4f 75 74 70 75 74 20 |t);.....|.Output |
|000029f0| 3d 20 22 22 3b 0d 0a 09 | 09 09 09 55 57 69 6e 64 |= "";...|...UWind|
|00002a00| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|00002a10| 2e 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 53 74 |.StartSt|yle = St|
|00002a20| 61 72 74 53 74 79 6c 65 | 3b 0d 0a 09 09 09 09 55 |artStyle|;......U|
|00002a30| 57 69 6e 64 6f 77 48 54 | 4d 4c 54 65 78 74 52 6f |WindowHT|MLTextRo|
|00002a40| 77 28 4c 29 2e 45 6e 64 | 53 74 79 6c 65 20 3d 20 |w(L).End|Style = |
|00002a50| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00002a60| 09 09 7d 0d 0a 09 09 09 | 43 75 72 72 65 6e 74 53 |..}.....|CurrentS|
|00002a70| 74 79 6c 65 2e 62 43 65 | 6e 74 65 72 20 3d 20 54 |tyle.bCe|nter = T|
|00002a80| 72 75 65 3b 0d 0a 09 09 | 09 53 74 61 72 74 53 74 |rue;....|.StartSt|
|00002a90| 79 6c 65 20 3d 20 43 75 | 72 72 65 6e 74 53 74 79 |yle = Cu|rrentSty|
|00002aa0| 6c 65 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |le;.....|break;..|
|00002ab0| 09 09 63 61 73 65 20 22 | 2f 43 45 4e 54 45 52 22 |..case "|/CENTER"|
|00002ac0| 3a 0d 0a 09 09 09 4c 20 | 3d 20 53 75 70 65 72 2e |:.....L |= Super.|
|00002ad0| 41 64 64 54 65 78 74 28 | 4f 75 74 70 75 74 20 24 |AddText(|Output $|
|00002ae0| 20 4c 65 66 74 54 65 78 | 74 29 3b 0d 0a 09 09 09 | LeftTex|t);.....|
|00002af0| 4f 75 74 70 75 74 20 3d | 20 22 22 3b 0d 0a 09 09 |Output =| "";....|
|00002b00| 09 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 |.UWindow|HTMLText|
|00002b10| 52 6f 77 28 4c 29 2e 53 | 74 61 72 74 53 74 79 6c |Row(L).S|tartStyl|
|00002b20| 65 20 3d 20 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |e = Star|tStyle;.|
|00002b30| 0a 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002b40| 65 78 74 52 6f 77 28 4c | 29 2e 45 6e 64 53 74 79 |extRow(L|).EndSty|
|00002b50| 6c 65 20 3d 20 43 75 72 | 72 65 6e 74 53 74 79 6c |le = Cur|rentStyl|
|00002b60| 65 3b 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |e;.....C|urrentSt|
|00002b70| 79 6c 65 2e 62 43 65 6e | 74 65 72 20 3d 20 46 61 |yle.bCen|ter = Fa|
|00002b80| 6c 73 65 3b 0d 0a 09 09 | 09 53 74 61 72 74 53 74 |lse;....|.StartSt|
|00002b90| 79 6c 65 20 3d 20 43 75 | 72 72 65 6e 74 53 74 79 |yle = Cu|rrentSty|
|00002ba0| 6c 65 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 09 09 |le;.....|break;..|
|00002bb0| 09 0d 0a 09 09 2f 2f 20 | 49 6e 6c 69 6e 65 20 48 |.....// |Inline H|
|00002bc0| 54 4d 4c 20 74 61 67 73 | 0d 0a 09 09 63 61 73 65 |TML tags|....case|
|00002bd0| 20 22 48 31 22 3a 0d 0a | 09 09 09 69 66 28 28 4f | "H1":..|...if((O|
|00002be0| 75 74 70 75 74 20 24 20 | 4c 65 66 74 54 65 78 74 |utput $ |LeftText|
|00002bf0| 29 20 21 3d 20 22 22 29 | 0d 0a 09 09 09 7b 0d 0a |) != "")|.....{..|
|00002c00| 09 09 09 09 4c 20 3d 20 | 53 75 70 65 72 2e 41 64 |....L = |Super.Ad|
|00002c10| 64 54 65 78 74 28 4f 75 | 74 70 75 74 20 24 20 4c |dText(Ou|tput $ L|
|00002c20| 65 66 74 54 65 78 74 29 | 3b 0d 0a 09 09 09 09 4f |eftText)|;......O|
|00002c30| 75 74 70 75 74 20 3d 20 | 22 22 3b 0d 0a 09 09 09 |utput = |"";.....|
|00002c40| 09 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 |.UWindow|HTMLText|
|00002c50| 52 6f 77 28 4c 29 2e 53 | 74 61 72 74 53 74 79 6c |Row(L).S|tartStyl|
|00002c60| 65 20 3d 20 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |e = Star|tStyle;.|
|00002c70| 0a 09 09 09 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.....UWi|ndowHTML|
|00002c80| 54 65 78 74 52 6f 77 28 | 4c 29 2e 45 6e 64 53 74 |TextRow(|L).EndSt|
|00002c90| 79 6c 65 20 3d 20 43 75 | 72 72 65 6e 74 53 74 79 |yle = Cu|rrentSty|
|00002ca0| 6c 65 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 09 43 75 |le;.....|}.....Cu|
|00002cb0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 48 65 61 64 |rrentSty|le.bHead|
|00002cc0| 69 6e 67 20 3d 20 54 72 | 75 65 3b 0d 0a 09 09 09 |ing = Tr|ue;.....|
|00002cd0| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 43 75 72 |StartSty|le = Cur|
|00002ce0| 72 65 6e 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 62 |rentStyl|e;.....b|
|00002cf0| 72 65 61 6b 3b 0d 0a 09 | 09 63 61 73 65 20 22 2f |reak;...|.case "/|
|00002d00| 48 31 22 3a 0d 0a 09 09 | 09 4c 20 3d 20 53 75 70 |H1":....|.L = Sup|
|00002d10| 65 72 2e 41 64 64 54 65 | 78 74 28 4f 75 74 70 75 |er.AddTe|xt(Outpu|
|00002d20| 74 20 24 20 4c 65 66 74 | 54 65 78 74 29 3b 0d 0a |t $ Left|Text);..|
|00002d30| 09 09 09 4f 75 74 70 75 | 74 20 3d 20 22 22 3b 0d |...Outpu|t = "";.|
|00002d40| 0a 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002d50| 65 78 74 52 6f 77 28 4c | 29 2e 53 74 61 72 74 53 |extRow(L|).StartS|
|00002d60| 74 79 6c 65 20 3d 20 53 | 74 61 72 74 53 74 79 6c |tyle = S|tartStyl|
|00002d70| 65 3b 0d 0a 09 09 09 55 | 57 69 6e 64 6f 77 48 54 |e;.....U|WindowHT|
|00002d80| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 45 6e 64 |MLTextRo|w(L).End|
|00002d90| 53 74 79 6c 65 20 3d 20 | 43 75 72 72 65 6e 74 53 |Style = |CurrentS|
|00002da0| 74 79 6c 65 3b 0d 0a 09 | 09 09 43 75 72 72 65 6e |tyle;...|..Curren|
|00002db0| 74 53 74 79 6c 65 2e 62 | 48 65 61 64 69 6e 67 20 |tStyle.b|Heading |
|00002dc0| 3d 20 46 61 6c 73 65 3b | 0d 0a 09 09 09 53 74 61 |= False;|.....Sta|
|00002dd0| 72 74 53 74 79 6c 65 20 | 3d 20 43 75 72 72 65 6e |rtStyle |= Curren|
|00002de0| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 62 72 65 61 |tStyle;.|....brea|
|00002df0| 6b 3b 09 09 09 0d 0a 09 | 09 63 61 73 65 20 22 46 |k;......|.case "F|
|00002e00| 4f 4e 54 22 3a 0d 0a 09 | 09 09 4f 75 74 70 75 74 |ONT":...|..Output|
|00002e10| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 | = Outpu|t $ Left|
|00002e20| 54 65 78 74 20 24 20 48 | 54 4d 4c 3b 0d 0a 09 09 |Text $ H|TML;....|
|00002e30| 09 54 65 6d 70 20 3d 20 | 47 65 74 4f 70 74 69 6f |.Temp = |GetOptio|
|00002e40| 6e 28 48 54 4d 4c 2c 20 | 22 43 4f 4c 4f 52 3d 22 |n(HTML, |"COLOR="|
|00002e50| 29 3b 0d 0a 09 09 09 69 | 66 28 54 65 6d 70 20 21 |);.....i|f(Temp !|
|00002e60| 3d 20 22 22 29 0d 0a 09 | 09 09 09 43 75 72 72 65 |= "")...|...Curre|
|00002e70| 6e 74 53 74 79 6c 65 2e | 54 65 78 74 43 6f 6c 6f |ntStyle.|TextColo|
|00002e80| 72 20 3d 20 50 61 72 73 | 65 43 6f 6c 6f 72 28 54 |r = Pars|eColor(T|
|00002e90| 65 6d 70 29 3b 0d 0a 09 | 09 09 54 65 6d 70 20 3d |emp);...|..Temp =|
|00002ea0| 20 47 65 74 4f 70 74 69 | 6f 6e 28 48 54 4d 4c 2c | GetOpti|on(HTML,|
|00002eb0| 20 22 42 47 43 4f 4c 4f | 52 3d 22 29 3b 0d 0a 09 | "BGCOLO|R=");...|
|00002ec0| 09 09 69 66 28 54 65 6d | 70 20 21 3d 20 22 22 29 |..if(Tem|p != "")|
|00002ed0| 0d 0a 09 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |......Cu|rrentSty|
|00002ee0| 6c 65 2e 42 47 43 6f 6c | 6f 72 20 3d 20 50 61 72 |le.BGCol|or = Par|
|00002ef0| 73 65 43 6f 6c 6f 72 28 | 54 65 6d 70 29 3b 0d 0a |seColor(|Temp);..|
|00002f00| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|00002f10| 65 20 22 2f 46 4f 4e 54 | 22 3a 0d 0a 09 09 09 4f |e "/FONT|":.....O|
|00002f20| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00002f30| 20 4c 65 66 74 54 65 78 | 74 20 24 20 48 54 4d 4c | LeftTex|t $ HTML|
|00002f40| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00002f50| 6c 65 2e 54 65 78 74 43 | 6f 6c 6f 72 20 3d 20 54 |le.TextC|olor = T|
|00002f60| 65 78 74 43 6f 6c 6f 72 | 3b 0d 0a 09 09 09 43 75 |extColor|;.....Cu|
|00002f70| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00002f80| 6f 72 20 3d 20 42 47 43 | 6f 6c 6f 72 3b 0d 0a 09 |or = BGC|olor;...|
|00002f90| 09 09 62 72 65 61 6b 3b | 0d 0a 09 09 63 61 73 65 |..break;|....case|
|00002fa0| 20 22 42 22 3a 0d 0a 09 | 09 09 4f 75 74 70 75 74 | "B":...|..Output|
|00002fb0| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 | = Outpu|t $ Left|
|00002fc0| 54 65 78 74 20 24 20 48 | 54 4d 4c 3b 0d 0a 09 09 |Text $ H|TML;....|
|00002fd0| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 42 |.Current|Style.bB|
|00002fe0| 6f 6c 64 20 3d 20 54 72 | 75 65 3b 0d 0a 09 09 09 |old = Tr|ue;.....|
|00002ff0| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00003000| 2f 42 22 3a 0d 0a 09 09 | 09 4f 75 74 70 75 74 20 |/B":....|.Output |
|00003010| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |= Output| $ LeftT|
|00003020| 65 78 74 20 24 20 48 54 | 4d 4c 3b 0d 0a 09 09 09 |ext $ HT|ML;.....|
|00003030| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 42 6f |CurrentS|tyle.bBo|
|00003040| 6c 64 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 09 |ld = Fal|se;.....|
|00003050| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00003060| 55 22 3a 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |U":.....|Output =|
|00003070| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 | Output |$ LeftTe|
|00003080| 78 74 20 24 20 48 54 4d | 4c 3b 0d 0a 09 09 09 43 |xt $ HTM|L;.....C|
|00003090| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 55 6e 64 |urrentSt|yle.bUnd|
|000030a0| 65 72 6c 69 6e 65 20 3d | 20 54 72 75 65 3b 0d 0a |erline =| True;..|
|000030b0| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|000030c0| 65 20 22 2f 55 22 3a 0d | 0a 09 09 09 4f 75 74 70 |e "/U":.|....Outp|
|000030d0| 75 74 20 3d 20 4f 75 74 | 70 75 74 20 24 20 4c 65 |ut = Out|put $ Le|
|000030e0| 66 74 54 65 78 74 20 24 | 20 48 54 4d 4c 3b 0d 0a |ftText $| HTML;..|
|000030f0| 09 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003100| 62 55 6e 64 65 72 6c 69 | 6e 65 20 3d 20 46 61 6c |bUnderli|ne = Fal|
|00003110| 73 65 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |se;.....|break;..|
|00003120| 09 09 63 61 73 65 20 22 | 41 22 3a 0d 0a 09 09 09 |..case "|A":.....|
|00003130| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00003140| 24 20 4c 65 66 74 54 65 | 78 74 20 24 20 48 54 4d |$ LeftTe|xt $ HTM|
|00003150| 4c 3b 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |L;.....C|urrentSt|
|00003160| 79 6c 65 2e 62 4c 69 6e | 6b 20 3d 20 54 72 75 65 |yle.bLin|k = True|
|00003170| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00003180| 6c 65 2e 4c 69 6e 6b 44 | 65 73 74 69 6e 61 74 69 |le.LinkD|estinati|
|00003190| 6f 6e 20 3d 20 47 65 74 | 4f 70 74 69 6f 6e 28 48 |on = Get|Option(H|
|000031a0| 54 4d 4c 2c 20 22 48 52 | 45 46 3d 22 29 3b 0d 0a |TML, "HR|EF=");..|
|000031b0| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|000031c0| 65 20 22 2f 41 22 3a 0d | 0a 09 09 09 4f 75 74 70 |e "/A":.|....Outp|
|000031d0| 75 74 20 3d 20 4f 75 74 | 70 75 74 20 24 20 4c 65 |ut = Out|put $ Le|
|000031e0| 66 74 54 65 78 74 20 24 | 20 48 54 4d 4c 3b 0d 0a |ftText $| HTML;..|
|000031f0| 09 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003200| 62 4c 69 6e 6b 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |bLink = |False;..|
|00003210| 09 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003220| 4c 69 6e 6b 44 65 73 74 | 69 6e 61 74 69 6f 6e 20 |LinkDest|ination |
|00003230| 3d 20 22 22 3b 0d 0a 09 | 09 09 62 72 65 61 6b 3b |= "";...|..break;|
|00003240| 0d 0a 09 09 63 61 73 65 | 20 22 4e 4f 42 52 22 3a |....case| "NOBR":|
|00003250| 0d 0a 09 09 09 4f 75 74 | 70 75 74 20 3d 20 4f 75 |.....Out|put = Ou|
|00003260| 74 70 75 74 20 24 20 4c | 65 66 74 54 65 78 74 20 |tput $ L|eftText |
|00003270| 24 20 48 54 4d 4c 3b 0d | 0a 09 09 09 43 75 72 72 |$ HTML;.|....Curr|
|00003280| 65 6e 74 53 74 79 6c 65 | 2e 62 4e 6f 42 52 20 3d |entStyle|.bNoBR =|
|00003290| 20 54 72 75 65 3b 0d 0a | 09 09 09 62 72 65 61 6b | True;..|...break|
|000032a0| 3b 0d 0a 09 09 63 61 73 | 65 20 22 2f 4e 4f 42 52 |;....cas|e "/NOBR|
|000032b0| 22 3a 0d 0a 09 09 09 4f | 75 74 70 75 74 20 3d 20 |":.....O|utput = |
|000032c0| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 54 65 78 |Output $| LeftTex|
|000032d0| 74 20 24 20 48 54 4d 4c | 3b 0d 0a 09 09 09 43 75 |t $ HTML|;.....Cu|
|000032e0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 4e 6f 42 52 |rrentSty|le.bNoBR|
|000032f0| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 09 62 72 | = False|;.....br|
|00003300| 65 61 6b 3b 0d 0a 09 09 | 63 61 73 65 20 22 42 4c |eak;....|case "BL|
|00003310| 49 4e 4b 22 3a 0d 0a 09 | 09 09 4f 75 74 70 75 74 |INK":...|..Output|
|00003320| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 | = Outpu|t $ Left|
|00003330| 54 65 78 74 20 24 20 48 | 54 4d 4c 3b 0d 0a 09 09 |Text $ H|TML;....|
|00003340| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 42 |.Current|Style.bB|
|00003350| 6c 69 6e 6b 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |link = T|rue;....|
|00003360| 09 62 72 65 61 6b 3b 0d | 0a 09 09 63 61 73 65 20 |.break;.|...case |
|00003370| 22 2f 42 4c 49 4e 4b 22 | 3a 0d 0a 09 09 09 4f 75 |"/BLINK"|:.....Ou|
|00003380| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00003390| 4c 65 66 74 54 65 78 74 | 20 24 20 48 54 4d 4c 3b |LeftText| $ HTML;|
|000033a0| 0d 0a 09 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |.....Cur|rentStyl|
|000033b0| 65 2e 62 42 6c 69 6e 6b | 20 3d 20 46 61 6c 73 65 |e.bBlink| = False|
|000033c0| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|000033d0| 64 65 66 61 75 6c 74 3a | 0d 0a 09 09 09 4f 75 74 |default:|.....Out|
|000033e0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|000033f0| 65 66 74 54 65 78 74 3b | 0d 0a 09 09 09 62 72 65 |eftText;|.....bre|
|00003400| 61 6b 3b 0d 0a 09 09 7d | 0d 0a 09 09 49 6e 70 75 |ak;....}|....Inpu|
|00003410| 74 20 3d 20 52 69 67 68 | 74 54 65 78 74 3b 0d 0a |t = Righ|tText;..|
|00003420| 09 7d 0d 0a 0d 0a 09 4c | 20 3d 20 53 75 70 65 72 |.}.....L| = Super|
|00003430| 2e 41 64 64 54 65 78 74 | 28 4f 75 74 70 75 74 29 |.AddText|(Output)|
|00003440| 3b 0d 0a 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |;...UWin|dowHTMLT|
|00003450| 65 78 74 52 6f 77 28 4c | 29 2e 53 74 61 72 74 53 |extRow(L|).StartS|
|00003460| 74 79 6c 65 20 3d 20 53 | 74 61 72 74 53 74 79 6c |tyle = S|tartStyl|
|00003470| 65 3b 0d 0a 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |e;...UWi|ndowHTML|
|00003480| 54 65 78 74 52 6f 77 28 | 4c 29 2e 45 6e 64 53 74 |TextRow(|L).EndSt|
|00003490| 79 6c 65 20 3d 20 43 75 | 72 72 65 6e 74 53 74 79 |yle = Cu|rrentSty|
|000034a0| 6c 65 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 4c |le;.....|return L|
|000034b0| 3b 0d 0a 7d 0d 0a 0d 0a | 2f 2f 2f 2f 2f 2f 2f 2f |;..}....|////////|
|000034c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034d0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034e0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 0d 0a 2f 2f 20 |////////|///..// |
|000034f0| 48 54 4d 4c 20 54 65 78 | 74 20 50 72 6f 63 65 73 |HTML Tex|t Proces|
|00003500| 73 69 6e 67 0d 0a 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |sing..//|////////|
|00003510| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003520| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003530| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 0d 0a 2f 2f 20 |////////|/....// |
|00003540| 47 65 74 20 74 68 65 20 | 6e 65 78 74 20 48 54 4d |Get the |next HTM|
|00003550| 4c 20 74 61 67 2c 20 74 | 68 65 20 74 65 78 74 20 |L tag, t|he text |
|00003560| 62 65 66 6f 72 65 20 69 | 74 20 61 6e 64 20 65 76 |before i|t and ev|
|00003570| 65 72 74 68 69 6e 67 20 | 61 66 74 65 72 20 69 74 |erthing |after it|
|00003580| 2e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 61 72 73 |...funct|ion Pars|
|00003590| 65 48 54 4d 4c 28 73 74 | 72 69 6e 67 20 49 6e 70 |eHTML(st|ring Inp|
|000035a0| 75 74 2c 20 6f 75 74 20 | 73 74 72 69 6e 67 20 4c |ut, out |string L|
|000035b0| 65 66 74 54 65 78 74 2c | 20 6f 75 74 20 73 74 72 |eftText,| out str|
|000035c0| 69 6e 67 20 48 54 4d 4c | 2c 20 6f 75 74 20 73 74 |ing HTML|, out st|
|000035d0| 72 69 6e 67 20 52 69 67 | 68 74 54 65 78 74 29 0d |ring Rig|htText).|
|000035e0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|000035f0| 3b 0d 0a 09 0d 0a 09 69 | 20 3d 20 49 6e 53 74 72 |;......i| = InStr|
|00003600| 28 49 6e 70 75 74 2c 20 | 22 3c 22 29 3b 0d 0a 09 |(Input, |"<");...|
|00003610| 69 66 28 69 20 3d 3d 20 | 2d 31 29 0d 0a 09 7b 0d |if(i == |-1)...{.|
|00003620| 0a 09 09 4c 65 66 74 54 | 65 78 74 20 3d 20 49 6e |...LeftT|ext = In|
|00003630| 70 75 74 3b 0d 0a 09 09 | 48 54 4d 4c 20 3d 20 22 |put;....|HTML = "|
|00003640| 22 3b 0d 0a 09 09 52 69 | 67 68 74 54 65 78 74 20 |";....Ri|ghtText |
|00003650| 3d 20 22 22 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |= "";...|.return;|
|00003660| 0d 0a 09 7d 0d 0a 0d 0a | 09 4c 65 66 74 54 65 78 |...}....|.LeftTex|
|00003670| 74 20 3d 20 4c 65 66 74 | 28 49 6e 70 75 74 2c 20 |t = Left|(Input, |
|00003680| 69 29 3b 0d 0a 09 48 54 | 4d 4c 20 3d 20 4d 69 64 |i);...HT|ML = Mid|
|00003690| 28 49 6e 70 75 74 2c 20 | 69 29 3b 0d 0a 0d 0a 09 |(Input, |i);.....|
|000036a0| 69 20 3d 20 49 6e 53 74 | 72 28 48 54 4d 4c 2c 20 |i = InSt|r(HTML, |
|000036b0| 22 3e 22 29 3b 0d 0a 09 | 69 66 28 69 20 3d 3d 20 |">");...|if(i == |
|000036c0| 2d 31 29 0d 0a 09 7b 0d | 0a 09 09 52 69 67 68 74 |-1)...{.|...Right|
|000036d0| 54 65 78 74 20 3d 20 22 | 22 3b 0d 0a 09 09 72 65 |Text = "|";....re|
|000036e0| 74 75 72 6e 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 52 69 |turn;...|}.....Ri|
|000036f0| 67 68 74 54 65 78 74 20 | 3d 20 4d 69 64 28 48 54 |ghtText |= Mid(HT|
|00003700| 4d 4c 2c 20 69 2b 31 29 | 3b 0d 0a 09 48 54 4d 4c |ML, i+1)|;...HTML|
|00003710| 20 3d 20 4c 65 66 74 28 | 48 54 4d 4c 2c 20 69 2b | = Left(|HTML, i+|
|00003720| 31 29 3b 09 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |1);...}.|...funct|
|00003730| 69 6f 6e 20 66 6c 6f 61 | 74 20 43 61 6c 63 48 54 |ion floa|t CalcHT|
|00003740| 4d 4c 54 65 78 74 57 69 | 64 74 68 28 43 61 6e 76 |MLTextWi|dth(Canv|
|00003750| 61 73 20 43 2c 20 73 74 | 72 69 6e 67 20 54 65 78 |as C, st|ring Tex|
|00003760| 74 2c 20 6f 75 74 20 48 | 54 4d 4c 53 74 79 6c 65 |t, out H|TMLStyle|
|00003770| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 0d 0a | Current|Style)..|
|00003780| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|00003790| 20 49 6e 70 75 74 2c 20 | 4c 65 66 74 54 65 78 74 | Input, |LeftText|
|000037a0| 2c 20 48 54 4d 4c 2c 20 | 52 69 67 68 74 54 65 78 |, HTML, |RightTex|
|000037b0| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |t;...loc|al float|
|000037c0| 20 57 2c 20 48 2c 20 57 | 69 64 74 68 3b 0d 0a 0d | W, H, W|idth;...|
|000037d0| 0a 09 57 69 64 74 68 20 | 3d 20 30 3b 0d 0a 09 49 |..Width |= 0;...I|
|000037e0| 6e 70 75 74 20 3d 20 54 | 65 78 74 3b 0d 0a 09 77 |nput = T|ext;...w|
|000037f0| 68 69 6c 65 28 49 6e 70 | 75 74 20 21 3d 20 22 22 |hile(Inp|ut != ""|
|00003800| 29 0d 0a 09 7b 0d 0a 09 | 09 50 61 72 73 65 48 54 |)...{...|.ParseHT|
|00003810| 4d 4c 28 49 6e 70 75 74 | 2c 20 4c 65 66 74 54 65 |ML(Input|, LeftTe|
|00003820| 78 74 2c 20 48 54 4d 4c | 2c 20 52 69 67 68 74 54 |xt, HTML|, RightT|
|00003830| 65 78 74 29 3b 0d 0a 0d | 0a 09 09 53 65 74 43 61 |ext);...|...SetCa|
|00003840| 6e 76 61 73 53 74 79 6c | 65 28 43 2c 20 43 75 72 |nvasStyl|e(C, Cur|
|00003850| 72 65 6e 74 53 74 79 6c | 65 29 3b 0d 0a 09 09 54 |rentStyl|e);....T|
|00003860| 65 78 74 41 72 65 61 54 | 65 78 74 53 69 7a 65 28 |extAreaT|extSize(|
|00003870| 43 2c 20 4c 65 66 74 54 | 65 78 74 2c 20 57 2c 20 |C, LeftT|ext, W, |
|00003880| 48 29 3b 0d 0a 09 09 57 | 69 64 74 68 20 2b 3d 20 |H);....W|idth += |
|00003890| 57 3b 0d 0a 09 09 09 09 | 09 0d 0a 09 09 50 72 6f |W;......|.....Pro|
|000038a0| 63 65 73 73 49 6e 6c 69 | 6e 65 48 54 4d 4c 28 48 |cessInli|neHTML(H|
|000038b0| 54 4d 4c 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |TML, Cur|rentStyl|
|000038c0| 65 29 3b 0d 0a 0d 0a 09 | 09 49 6e 70 75 74 20 3d |e);.....|.Input =|
|000038d0| 20 52 69 67 68 74 54 65 | 78 74 3b 0d 0a 09 7d 0d | RightTe|xt;...}.|
|000038e0| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 57 69 64 74 68 |....retu|rn Width|
|000038f0| 3b 0d 0a 7d 0d 0a 0d 0a | 2f 2f 20 55 70 64 61 74 |;..}....|// Updat|
|00003900| 65 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 20 62 |e Curren|tStyle b|
|00003910| 61 73 65 64 20 6f 6e 20 | 74 68 65 20 63 6f 6e 74 |ased on |the cont|
|00003920| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 48 54 4d 4c |ents of |the HTML|
|00003930| 20 74 61 67 20 70 72 6f | 76 69 64 65 64 0d 0a 66 | tag pro|vided..f|
|00003940| 75 6e 63 74 69 6f 6e 20 | 50 72 6f 63 65 73 73 49 |unction |ProcessI|
|00003950| 6e 6c 69 6e 65 48 54 4d | 4c 28 73 74 72 69 6e 67 |nlineHTM|L(string|
|00003960| 20 48 54 4d 4c 2c 20 6f | 75 74 20 48 54 4d 4c 53 | HTML, o|ut HTMLS|
|00003970| 74 79 6c 65 20 43 75 72 | 72 65 6e 74 53 74 79 6c |tyle Cur|rentStyl|
|00003980| 65 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |e)..{...|local st|
|00003990| 72 69 6e 67 20 54 65 6d | 70 3b 0d 0a 0d 0a 09 69 |ring Tem|p;.....i|
|000039a0| 66 28 48 54 4d 4c 20 3d | 3d 20 22 22 29 09 0d 0a |f(HTML =|= "")...|
|000039b0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 73 77 |..return|;.....sw|
|000039c0| 69 74 63 68 28 47 65 74 | 54 61 67 28 48 54 4d 4c |itch(Get|Tag(HTML|
|000039d0| 29 29 0d 0a 09 7b 0d 0a | 09 63 61 73 65 20 22 48 |))...{..|.case "H|
|000039e0| 31 22 3a 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |1":....C|urrentSt|
|000039f0| 79 6c 65 2e 62 48 65 61 | 64 69 6e 67 20 3d 20 54 |yle.bHea|ding = T|
|00003a00| 72 75 65 3b 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a |rue;....|break;..|
|00003a10| 09 63 61 73 65 20 22 2f | 48 31 22 3a 0d 0a 09 09 |.case "/|H1":....|
|00003a20| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 48 65 |CurrentS|tyle.bHe|
|00003a30| 61 64 69 6e 67 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |ading = |False;..|
|00003a40| 09 09 62 72 65 61 6b 3b | 09 09 09 0d 0a 09 63 61 |..break;|......ca|
|00003a50| 73 65 20 22 46 4f 4e 54 | 22 3a 0d 0a 09 09 54 65 |se "FONT|":....Te|
|00003a60| 6d 70 20 3d 20 47 65 74 | 4f 70 74 69 6f 6e 28 48 |mp = Get|Option(H|
|00003a70| 54 4d 4c 2c 20 22 43 4f | 4c 4f 52 3d 22 29 3b 0d |TML, "CO|LOR=");.|
|00003a80| 0a 09 09 69 66 28 54 65 | 6d 70 20 21 3d 20 22 22 |...if(Te|mp != ""|
|00003a90| 29 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |).....Cu|rrentSty|
|00003aa0| 6c 65 2e 54 65 78 74 43 | 6f 6c 6f 72 20 3d 20 50 |le.TextC|olor = P|
|00003ab0| 61 72 73 65 43 6f 6c 6f | 72 28 54 65 6d 70 29 3b |arseColo|r(Temp);|
|00003ac0| 0d 0a 09 09 54 65 6d 70 | 20 3d 20 47 65 74 4f 70 |....Temp| = GetOp|
|00003ad0| 74 69 6f 6e 28 48 54 4d | 4c 2c 20 22 42 47 43 4f |tion(HTM|L, "BGCO|
|00003ae0| 4c 4f 52 3d 22 29 3b 0d | 0a 09 09 69 66 28 54 65 |LOR=");.|...if(Te|
|00003af0| 6d 70 20 21 3d 20 22 22 | 29 0d 0a 09 09 09 43 75 |mp != ""|).....Cu|
|00003b00| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00003b10| 6f 72 20 3d 20 50 61 72 | 73 65 43 6f 6c 6f 72 28 |or = Par|seColor(|
|00003b20| 54 65 6d 70 29 3b 0d 0a | 09 09 62 72 65 61 6b 3b |Temp);..|..break;|
|00003b30| 0d 0a 09 63 61 73 65 20 | 22 2f 46 4f 4e 54 22 3a |...case |"/FONT":|
|00003b40| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003b50| 2e 54 65 78 74 43 6f 6c | 6f 72 20 3d 20 54 65 78 |.TextCol|or = Tex|
|00003b60| 74 43 6f 6c 6f 72 3b 0d | 0a 09 09 43 75 72 72 65 |tColor;.|...Curre|
|00003b70| 6e 74 53 74 79 6c 65 2e | 42 47 43 6f 6c 6f 72 20 |ntStyle.|BGColor |
|00003b80| 3d 20 42 47 43 6f 6c 6f | 72 3b 0d 0a 09 09 62 72 |= BGColo|r;....br|
|00003b90| 65 61 6b 3b 0d 0a 09 63 | 61 73 65 20 22 42 22 3a |eak;...c|ase "B":|
|00003ba0| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003bb0| 2e 62 42 6f 6c 64 20 3d | 20 54 72 75 65 3b 0d 0a |.bBold =| True;..|
|00003bc0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00003bd0| 22 2f 42 22 3a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |"/B":...|.Current|
|00003be0| 53 74 79 6c 65 2e 62 42 | 6f 6c 64 20 3d 20 46 61 |Style.bB|old = Fa|
|00003bf0| 6c 73 65 3b 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a |lse;....|break;..|
|00003c00| 09 63 61 73 65 20 22 55 | 22 3a 0d 0a 09 09 43 75 |.case "U|":....Cu|
|00003c10| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 55 6e 64 65 |rrentSty|le.bUnde|
|00003c20| 72 6c 69 6e 65 20 3d 20 | 54 72 75 65 3b 0d 0a 09 |rline = |True;...|
|00003c30| 09 62 72 65 61 6b 3b 0d | 0a 09 63 61 73 65 20 22 |.break;.|..case "|
|00003c40| 2f 55 22 3a 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |/U":....|CurrentS|
|00003c50| 74 79 6c 65 2e 62 55 6e | 64 65 72 6c 69 6e 65 20 |tyle.bUn|derline |
|00003c60| 3d 20 46 61 6c 73 65 3b | 0d 0a 09 09 62 72 65 61 |= False;|....brea|
|00003c70| 6b 3b 0d 0a 09 63 61 73 | 65 20 22 41 22 3a 0d 0a |k;...cas|e "A":..|
|00003c80| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00003c90| 4c 69 6e 6b 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |Link = T|rue;....|
|00003ca0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 4c 69 6e |CurrentS|tyle.Lin|
|00003cb0| 6b 44 65 73 74 69 6e 61 | 74 69 6f 6e 20 3d 20 47 |kDestina|tion = G|
|00003cc0| 65 74 4f 70 74 69 6f 6e | 28 48 54 4d 4c 2c 20 22 |etOption|(HTML, "|
|00003cd0| 48 52 45 46 3d 22 29 3b | 0d 0a 09 09 62 72 65 61 |HREF=");|....brea|
|00003ce0| 6b 3b 0d 0a 09 63 61 73 | 65 20 22 2f 41 22 3a 0d |k;...cas|e "/A":.|
|00003cf0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003d00| 62 4c 69 6e 6b 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |bLink = |False;..|
|00003d10| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 4c |..Curren|tStyle.L|
|00003d20| 69 6e 6b 44 65 73 74 69 | 6e 61 74 69 6f 6e 20 3d |inkDesti|nation =|
|00003d30| 20 22 22 3b 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a | "";....|break;..|
|00003d40| 09 63 61 73 65 20 22 4e | 4f 42 52 22 3a 0d 0a 09 |.case "N|OBR":...|
|00003d50| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4e |.Current|Style.bN|
|00003d60| 6f 42 52 20 3d 20 54 72 | 75 65 3b 0d 0a 09 09 62 |oBR = Tr|ue;....b|
|00003d70| 72 65 61 6b 3b 0d 0a 09 | 63 61 73 65 20 22 2f 4e |reak;...|case "/N|
|00003d80| 4f 42 52 22 3a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |OBR":...|.Current|
|00003d90| 53 74 79 6c 65 2e 62 4e | 6f 42 52 20 3d 20 46 61 |Style.bN|oBR = Fa|
|00003da0| 6c 73 65 3b 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a |lse;....|break;..|
|00003db0| 09 63 61 73 65 20 22 42 | 4c 49 4e 4b 22 3a 0d 0a |.case "B|LINK":..|
|00003dc0| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00003dd0| 42 6c 69 6e 6b 20 3d 20 | 54 72 75 65 3b 0d 0a 09 |Blink = |True;...|
|00003de0| 09 62 72 65 61 6b 3b 0d | 0a 09 63 61 73 65 20 22 |.break;.|..case "|
|00003df0| 2f 42 4c 49 4e 4b 22 3a | 0d 0a 09 09 43 75 72 72 |/BLINK":|....Curr|
|00003e00| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6c 69 6e 6b 20 |entStyle|.bBlink |
|00003e10| 3d 20 46 61 6c 73 65 3b | 0d 0a 09 09 62 72 65 61 |= False;|....brea|
|00003e20| 6b 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |k;...}..|}....// |
|00003e30| 75 70 64 61 74 65 20 74 | 68 65 20 63 75 72 72 65 |update t|he curre|
|00003e40| 6e 74 20 73 74 79 6c 65 | 20 62 61 73 65 64 20 6f |nt style| based o|
|00003e50| 6e 20 73 6f 6d 65 20 74 | 65 78 74 20 69 6e 70 75 |n some t|ext inpu|
|00003e60| 74 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 48 54 4d 4c |t..funct|ion HTML|
|00003e70| 55 70 64 61 74 65 53 74 | 79 6c 65 28 73 74 72 69 |UpdateSt|yle(stri|
|00003e80| 6e 67 20 49 6e 70 75 74 | 2c 20 6f 75 74 20 48 54 |ng Input|, out HT|
|00003e90| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00003ea0| 74 79 6c 65 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |tyle)..{|...local|
|00003eb0| 20 73 74 72 69 6e 67 20 | 4c 65 66 74 54 65 78 74 | string |LeftText|
|00003ec0| 2c 20 48 54 4d 4c 2c 20 | 52 69 67 68 74 54 65 78 |, HTML, |RightTex|
|00003ed0| 74 3b 20 0d 0a 0d 0a 09 | 77 68 69 6c 65 28 49 6e |t; .....|while(In|
|00003ee0| 70 75 74 20 21 3d 20 22 | 22 29 0d 0a 09 7b 0d 0a |put != "|")...{..|
|00003ef0| 09 09 50 61 72 73 65 48 | 54 4d 4c 28 49 6e 70 75 |..ParseH|TML(Inpu|
|00003f00| 74 2c 20 4c 65 66 74 54 | 65 78 74 2c 20 48 54 4d |t, LeftT|ext, HTM|
|00003f10| 4c 2c 20 52 69 67 68 74 | 54 65 78 74 29 3b 0d 0a |L, Right|Text);..|
|00003f20| 09 09 50 72 6f 63 65 73 | 73 49 6e 6c 69 6e 65 48 |..Proces|sInlineH|
|00003f30| 54 4d 4c 28 48 54 4d 4c | 2c 20 43 75 72 72 65 6e |TML(HTML|, Curren|
|00003f40| 74 53 74 79 6c 65 29 3b | 0d 0a 09 09 49 6e 70 75 |tStyle);|....Inpu|
|00003f50| 74 20 3d 20 52 69 67 68 | 74 54 65 78 74 3b 0d 0a |t = Righ|tText;..|
|00003f60| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00003f70| 6e 20 73 74 72 69 6e 67 | 20 47 65 74 4f 70 74 69 |n string| GetOpti|
|00003f80| 6f 6e 28 73 74 72 69 6e | 67 20 48 54 4d 4c 2c 20 |on(strin|g HTML, |
|00003f90| 73 74 72 69 6e 67 20 4f | 70 74 69 6f 6e 29 0d 0a |string O|ption)..|
|00003fa0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 2c |{...loca|l int i,|
|00003fb0| 20 6a 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 | j;...lo|cal stri|
|00003fc0| 6e 67 20 73 3b 0d 0a 09 | 0d 0a 09 69 20 3d 20 49 |ng s;...|...i = I|
|00003fd0| 6e 53 74 72 28 43 61 70 | 73 28 48 54 4d 4c 29 2c |nStr(Cap|s(HTML),|
|00003fe0| 20 43 61 70 73 28 4f 70 | 74 69 6f 6e 29 29 3b 0d | Caps(Op|tion));.|
|00003ff0| 0a 0d 0a 09 69 66 28 69 | 20 3d 3d 20 31 20 7c 7c |....if(i| == 1 |||
|00004000| 20 4d 69 64 28 48 54 4d | 4c 2c 20 69 2d 31 2c 20 | Mid(HTM|L, i-1, |
|00004010| 31 29 20 3d 3d 20 22 20 | 22 29 20 0d 0a 09 7b 0d |1) == " |") ...{.|
|00004020| 0a 09 09 73 20 3d 20 4d | 69 64 28 48 54 4d 4c 2c |...s = M|id(HTML,|
|00004030| 20 69 2b 4c 65 6e 28 4f | 70 74 69 6f 6e 29 29 3b | i+Len(O|ption));|
|00004040| 0d 0a 09 09 6a 20 3d 20 | 46 69 72 73 74 4d 61 74 |....j = |FirstMat|
|00004050| 63 68 69 6e 67 28 49 6e | 53 74 72 28 73 2c 20 22 |ching(In|Str(s, "|
|00004060| 3e 22 29 2c 20 49 6e 53 | 74 72 28 73 2c 20 22 20 |>"), InS|tr(s, " |
|00004070| 22 29 29 3b 0d 0a 09 09 | 73 20 3d 20 4c 65 66 74 |"));....|s = Left|
|00004080| 28 73 2c 20 6a 29 3b 0d | 0a 0d 0a 09 09 69 66 28 |(s, j);.|.....if(|
|00004090| 4c 65 66 74 28 73 2c 20 | 31 29 20 3d 3d 20 22 5c |Left(s, |1) == "\|
|000040a0| 22 22 29 0d 0a 09 09 09 | 73 20 3d 20 4d 69 64 28 |"").....|s = Mid(|
|000040b0| 73 2c 20 31 29 3b 0d 0a | 0d 0a 09 09 69 66 28 52 |s, 1);..|....if(R|
|000040c0| 69 67 68 74 28 73 2c 20 | 31 29 20 3d 3d 20 22 5c |ight(s, |1) == "\|
|000040d0| 22 22 29 0d 0a 09 09 09 | 73 20 3d 20 4c 65 66 74 |"").....|s = Left|
|000040e0| 28 73 2c 20 4c 65 6e 28 | 73 29 20 2d 20 31 29 3b |(s, Len(|s) - 1);|
|000040f0| 0d 0a 0d 0a 09 09 72 65 | 74 75 72 6e 20 73 3b 0d |......re|turn s;.|
|00004100| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 22 22 3b |..}...re|turn "";|
|00004110| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00004120| 73 74 72 69 6e 67 20 47 | 65 74 54 61 67 28 73 74 |string G|etTag(st|
|00004130| 72 69 6e 67 20 48 54 4d | 4c 29 0d 0a 7b 0d 0a 09 |ring HTM|L)..{...|
|00004140| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|00004150| 09 69 66 28 48 54 4d 4c | 20 3d 3d 20 22 22 29 0d |.if(HTML| == "").|
|00004160| 0a 09 09 72 65 74 75 72 | 6e 20 22 22 3b 0d 0a 0d |...retur|n "";...|
|00004170| 0a 09 48 54 4d 4c 20 3d | 20 4d 69 64 28 48 54 4d |..HTML =| Mid(HTM|
|00004180| 4c 2c 20 31 29 3b 20 2f | 2f 20 6c 6f 73 65 20 3c |L, 1); /|/ lose <|
|00004190| 0d 0a 0d 0a 09 69 20 3d | 20 46 69 72 73 74 4d 61 |.....i =| FirstMa|
|000041a0| 74 63 68 69 6e 67 28 49 | 6e 53 74 72 28 48 54 4d |tching(I|nStr(HTM|
|000041b0| 4c 2c 20 22 3e 22 29 2c | 20 49 6e 53 74 72 28 48 |L, ">"),| InStr(H|
|000041c0| 54 4d 4c 2c 20 22 20 22 | 29 29 3b 0d 0a 09 69 66 |TML, " "|));...if|
|000041d0| 28 69 20 3d 3d 20 2d 31 | 29 0d 0a 09 09 72 65 74 |(i == -1|)....ret|
|000041e0| 75 72 6e 20 43 61 70 73 | 28 48 54 4d 4c 29 3b 0d |urn Caps|(HTML);.|
|000041f0| 0a 09 65 6c 73 65 0d 0a | 09 09 72 65 74 75 72 6e |..else..|..return|
|00004200| 20 43 61 70 73 28 4c 65 | 66 74 28 48 54 4d 4c 2c | Caps(Le|ft(HTML,|
|00004210| 20 69 29 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 | i));..}|....func|
|00004220| 74 69 6f 6e 20 43 6f 6c | 6f 72 20 50 61 72 73 65 |tion Col|or Parse|
|00004230| 43 6f 6c 6f 72 28 73 74 | 72 69 6e 67 20 53 29 0d |Color(st|ring S).|
|00004240| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 43 6f 6c 6f 72 |.{...loc|al Color|
|00004250| 20 43 3b 0d 0a 0d 0a 09 | 69 66 28 4c 65 66 74 28 | C;.....|if(Left(|
|00004260| 53 2c 20 31 29 20 3d 3d | 20 22 23 22 29 0d 0a 09 |S, 1) ==| "#")...|
|00004270| 09 53 20 3d 20 4d 69 64 | 28 53 2c 20 31 29 3b 0d |.S = Mid|(S, 1);.|
|00004280| 0a 0d 0a 09 43 2e 52 20 | 3d 20 31 36 20 2a 20 47 |....C.R |= 16 * G|
|00004290| 65 74 48 65 78 44 69 67 | 69 74 28 4d 69 64 28 53 |etHexDig|it(Mid(S|
|000042a0| 2c 20 30 2c 20 31 29 29 | 20 2b 20 47 65 74 48 65 |, 0, 1))| + GetHe|
|000042b0| 78 44 69 67 69 74 28 4d | 69 64 28 53 2c 20 31 2c |xDigit(M|id(S, 1,|
|000042c0| 20 31 29 29 3b 0d 0a 09 | 43 2e 47 20 3d 20 31 36 | 1));...|C.G = 16|
|000042d0| 20 2a 20 47 65 74 48 65 | 78 44 69 67 69 74 28 4d | * GetHe|xDigit(M|
|000042e0| 69 64 28 53 2c 20 32 2c | 20 31 29 29 20 2b 20 47 |id(S, 2,| 1)) + G|
|000042f0| 65 74 48 65 78 44 69 67 | 69 74 28 4d 69 64 28 53 |etHexDig|it(Mid(S|
|00004300| 2c 20 33 2c 20 31 29 29 | 3b 0d 0a 09 43 2e 42 20 |, 3, 1))|;...C.B |
|00004310| 3d 20 31 36 20 2a 20 47 | 65 74 48 65 78 44 69 67 |= 16 * G|etHexDig|
|00004320| 69 74 28 4d 69 64 28 53 | 2c 20 34 2c 20 31 29 29 |it(Mid(S|, 4, 1))|
|00004330| 20 2b 20 47 65 74 48 65 | 78 44 69 67 69 74 28 4d | + GetHe|xDigit(M|
|00004340| 69 64 28 53 2c 20 35 2c | 20 31 29 29 3b 0d 0a 0d |id(S, 5,| 1));...|
|00004350| 0a 09 72 65 74 75 72 6e | 20 43 3b 0d 0a 7d 0d 0a |..return| C;..}..|
|00004360| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 69 6e 74 20 47 |..functi|on int G|
|00004370| 65 74 48 65 78 44 69 67 | 69 74 28 73 74 72 69 6e |etHexDig|it(strin|
|00004380| 67 20 44 29 0d 0a 7b 0d | 0a 09 73 77 69 74 63 68 |g D)..{.|..switch|
|00004390| 28 63 61 70 73 28 44 29 | 29 0d 0a 09 7b 0d 0a 09 |(caps(D)|)...{...|
|000043a0| 63 61 73 65 20 22 30 22 | 3a 20 72 65 74 75 72 6e |case "0"|: return|
|000043b0| 20 30 3b 0d 0a 09 63 61 | 73 65 20 22 31 22 3a 20 | 0;...ca|se "1": |
|000043c0| 72 65 74 75 72 6e 20 31 | 3b 0d 0a 09 63 61 73 65 |return 1|;...case|
|000043d0| 20 22 32 22 3a 20 72 65 | 74 75 72 6e 20 32 3b 0d | "2": re|turn 2;.|
|000043e0| 0a 09 63 61 73 65 20 22 | 33 22 3a 20 72 65 74 75 |..case "|3": retu|
|000043f0| 72 6e 20 33 3b 0d 0a 09 | 63 61 73 65 20 22 34 22 |rn 3;...|case "4"|
|00004400| 3a 20 72 65 74 75 72 6e | 20 34 3b 0d 0a 09 63 61 |: return| 4;...ca|
|00004410| 73 65 20 22 35 22 3a 20 | 72 65 74 75 72 6e 20 35 |se "5": |return 5|
|00004420| 3b 20 0d 0a 09 63 61 73 | 65 20 22 36 22 3a 20 72 |; ...cas|e "6": r|
|00004430| 65 74 75 72 6e 20 36 3b | 20 0d 0a 09 63 61 73 65 |eturn 6;| ...case|
|00004440| 20 22 37 22 3a 20 72 65 | 74 75 72 6e 20 37 3b 20 | "7": re|turn 7; |
|00004450| 0d 0a 09 63 61 73 65 20 | 22 38 22 3a 20 72 65 74 |...case |"8": ret|
|00004460| 75 72 6e 20 38 3b 20 0d | 0a 09 63 61 73 65 20 22 |urn 8; .|..case "|
|00004470| 39 22 3a 20 72 65 74 75 | 72 6e 20 39 3b 20 0d 0a |9": retu|rn 9; ..|
|00004480| 09 63 61 73 65 20 22 41 | 22 3a 20 72 65 74 75 72 |.case "A|": retur|
|00004490| 6e 20 31 30 3b 20 0d 0a | 09 63 61 73 65 20 22 42 |n 10; ..|.case "B|
|000044a0| 22 3a 20 72 65 74 75 72 | 6e 20 31 31 3b 20 0d 0a |": retur|n 11; ..|
|000044b0| 09 63 61 73 65 20 22 43 | 22 3a 20 72 65 74 75 72 |.case "C|": retur|
|000044c0| 6e 20 31 32 3b 20 0d 0a | 09 63 61 73 65 20 22 44 |n 12; ..|.case "D|
|000044d0| 22 3a 20 72 65 74 75 72 | 6e 20 31 33 3b 20 0d 0a |": retur|n 13; ..|
|000044e0| 09 63 61 73 65 20 22 45 | 22 3a 20 72 65 74 75 72 |.case "E|": retur|
|000044f0| 6e 20 31 34 3b 20 0d 0a | 09 63 61 73 65 20 22 46 |n 14; ..|.case "F|
|00004500| 22 3a 20 72 65 74 75 72 | 6e 20 31 35 3b 20 0d 0a |": retur|n 15; ..|
|00004510| 09 7d 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 30 3b |.}.....r|eturn 0;|
|00004520| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00004530| 69 6e 74 20 46 69 72 73 | 74 4d 61 74 63 68 69 6e |int Firs|tMatchin|
|00004540| 67 28 69 6e 74 20 69 2c | 20 69 6e 74 20 6a 29 0d |g(int i,| int j).|
|00004550| 0a 7b 0d 0a 09 69 66 28 | 69 20 3d 3d 20 2d 31 29 |.{...if(|i == -1)|
|00004560| 0d 0a 09 09 72 65 74 75 | 72 6e 20 6a 3b 0d 0a 0d |....retu|rn j;...|
|00004570| 0a 09 69 66 28 6a 20 3d | 3d 20 2d 31 29 0d 0a 09 |..if(j =|= -1)...|
|00004580| 09 72 65 74 75 72 6e 20 | 69 3b 0d 0a 09 65 6c 73 |.return |i;...els|
|00004590| 65 0d 0a 09 09 72 65 74 | 75 72 6e 20 4d 69 6e 28 |e....ret|urn Min(|
|000045a0| 69 2c 20 6a 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |i, j);..|}....fun|
|000045b0| 63 74 69 6f 6e 20 53 65 | 74 43 61 6e 76 61 73 53 |ction Se|tCanvasS|
|000045c0| 74 79 6c 65 28 43 61 6e | 76 61 73 20 43 2c 20 48 |tyle(Can|vas C, H|
|000045d0| 54 4d 4c 53 74 79 6c 65 | 20 43 75 72 72 65 6e 74 |TMLStyle| Current|
|000045e0| 53 74 79 6c 65 29 0d 0a | 7b 0d 0a 09 69 66 28 43 |Style)..|{...if(C|
|000045f0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 4c 69 6e |urrentSt|yle.bLin|
|00004600| 6b 29 0d 0a 09 09 43 2e | 44 72 61 77 43 6f 6c 6f |k)....C.|DrawColo|
|00004610| 72 20 3d 20 4c 69 6e 6b | 43 6f 6c 6f 72 3b 0d 0a |r = Link|Color;..|
|00004620| 09 65 6c 73 65 0d 0a 09 | 09 43 2e 44 72 61 77 43 |.else...|.C.DrawC|
|00004630| 6f 6c 6f 72 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |olor = C|urrentSt|
|00004640| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 3b 0d 0a |yle.Text|Color;..|
|00004650| 0d 0a 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|00004660| 6c 65 2e 62 48 65 61 64 | 69 6e 67 29 0d 0a 09 09 |le.bHead|ing)....|
|00004670| 43 2e 46 6f 6e 74 20 3d | 20 52 6f 6f 74 2e 46 6f |C.Font =| Root.Fo|
|00004680| 6e 74 73 5b 46 5f 4c 61 | 72 67 65 42 6f 6c 64 5d |nts[F_La|rgeBold]|
|00004690| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 69 66 28 43 75 |;...else|...if(Cu|
|000046a0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 42 6f 6c 64 |rrentSty|le.bBold|
|000046b0| 29 0d 0a 09 09 43 2e 46 | 6f 6e 74 20 3d 20 52 6f |)....C.F|ont = Ro|
|000046c0| 6f 74 2e 46 6f 6e 74 73 | 5b 46 5f 42 6f 6c 64 5d |ot.Fonts|[F_Bold]|
|000046d0| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 43 2e 46 6f |;...else|....C.Fo|
|000046e0| 6e 74 20 3d 20 52 6f 6f | 74 2e 46 6f 6e 74 73 5b |nt = Roo|t.Fonts[|
|000046f0| 46 5f 4e 6f 72 6d 61 6c | 5d 3b 0d 0a 7d 0d 0a 0d |F_Normal|];..}...|
|00004700| 0a 66 75 6e 63 74 69 6f | 6e 20 73 74 72 69 6e 67 |.functio|n string|
|00004710| 20 57 72 69 74 65 53 74 | 79 6c 65 54 65 78 74 28 | WriteSt|yleText(|
|00004720| 48 54 4d 4c 53 74 79 6c | 65 20 43 75 72 72 65 6e |HTMLStyl|e Curren|
|00004730| 74 53 74 79 6c 65 2c 20 | 69 6e 74 20 43 68 61 72 |tStyle, |int Char|
|00004740| 43 6f 75 6e 74 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Count)..|{...loca|
|00004750| 6c 20 73 74 72 69 6e 67 | 20 50 61 64 3b 0d 0a 09 |l string| Pad;...|
|00004760| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 20 54 65 6d |local st|ring Tem|
|00004770| 70 3b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |p;...loc|al strin|
|00004780| 67 20 4f 75 74 70 75 74 | 3b 0d 0a 0d 0a 09 50 61 |g Output|;.....Pa|
|00004790| 64 20 3d 20 22 30 30 30 | 30 22 3b 0d 0a 0d 0a 09 |d = "000|0";.....|
|000047a0| 54 65 6d 70 20 3d 20 73 | 74 72 69 6e 67 28 43 68 |Temp = s|tring(Ch|
|000047b0| 61 72 43 6f 75 6e 74 29 | 3b 0d 0a 09 4f 75 74 70 |arCount)|;...Outp|
|000047c0| 75 74 20 3d 20 4c 65 66 | 74 28 50 61 64 2c 20 34 |ut = Lef|t(Pad, 4|
|000047d0| 20 2d 20 4c 65 6e 28 54 | 65 6d 70 29 29 20 24 20 | - Len(T|emp)) $ |
|000047e0| 54 65 6d 70 3b 0d 0a 09 | 09 0d 0a 09 54 65 6d 70 |Temp;...|....Temp|
|000047f0| 20 3d 20 73 74 72 69 6e | 67 28 4c 65 6e 28 43 75 | = strin|g(Len(Cu|
|00004800| 72 72 65 6e 74 53 74 79 | 6c 65 2e 4c 69 6e 6b 44 |rrentSty|le.LinkD|
|00004810| 65 73 74 69 6e 61 74 69 | 6f 6e 29 29 3b 0d 0a 09 |estinati|on));...|
|00004820| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004830| 24 20 4c 65 66 74 28 50 | 61 64 2c 20 34 20 2d 20 |$ Left(P|ad, 4 - |
|00004840| 4c 65 6e 28 54 65 6d 70 | 29 29 20 24 20 54 65 6d |Len(Temp|)) $ Tem|
|00004850| 70 20 24 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |p $ Curr|entStyle|
|00004860| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|00004870| 3b 0d 0a 0d 0a 09 54 65 | 6d 70 20 3d 20 73 74 72 |;.....Te|mp = str|
|00004880| 69 6e 67 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |ing(Curr|entStyle|
|00004890| 2e 54 65 78 74 43 6f 6c | 6f 72 2e 52 29 3b 0d 0a |.TextCol|or.R);..|
|000048a0| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|000048b0| 20 24 20 4c 65 66 74 28 | 50 61 64 2c 20 33 20 2d | $ Left(|Pad, 3 -|
|000048c0| 20 4c 65 6e 28 54 65 6d | 70 29 29 20 24 20 54 65 | Len(Tem|p)) $ Te|
|000048d0| 6d 70 3b 0d 0a 09 54 65 | 6d 70 20 3d 20 73 74 72 |mp;...Te|mp = str|
|000048e0| 69 6e 67 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |ing(Curr|entStyle|
|000048f0| 2e 54 65 78 74 43 6f 6c | 6f 72 2e 47 29 3b 0d 0a |.TextCol|or.G);..|
|00004900| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004910| 20 24 20 4c 65 66 74 28 | 50 61 64 2c 20 33 20 2d | $ Left(|Pad, 3 -|
|00004920| 20 4c 65 6e 28 54 65 6d | 70 29 29 20 24 20 54 65 | Len(Tem|p)) $ Te|
|00004930| 6d 70 3b 0d 0a 09 54 65 | 6d 70 20 3d 20 73 74 72 |mp;...Te|mp = str|
|00004940| 69 6e 67 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |ing(Curr|entStyle|
|00004950| 2e 54 65 78 74 43 6f 6c | 6f 72 2e 42 29 3b 0d 0a |.TextCol|or.B);..|
|00004960| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004970| 20 24 20 4c 65 66 74 28 | 50 61 64 2c 20 33 20 2d | $ Left(|Pad, 3 -|
|00004980| 20 4c 65 6e 28 54 65 6d | 70 29 29 20 24 20 54 65 | Len(Tem|p)) $ Te|
|00004990| 6d 70 3b 0d 0a 0d 0a 09 | 54 65 6d 70 20 3d 20 73 |mp;.....|Temp = s|
|000049a0| 74 72 69 6e 67 28 43 75 | 72 72 65 6e 74 53 74 79 |tring(Cu|rrentSty|
|000049b0| 6c 65 2e 42 47 43 6f 6c | 6f 72 2e 52 29 3b 0d 0a |le.BGCol|or.R);..|
|000049c0| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|000049d0| 20 24 20 4c 65 66 74 28 | 50 61 64 2c 20 33 20 2d | $ Left(|Pad, 3 -|
|000049e0| 20 4c 65 6e 28 54 65 6d | 70 29 29 20 24 20 54 65 | Len(Tem|p)) $ Te|
|000049f0| 6d 70 3b 0d 0a 09 54 65 | 6d 70 20 3d 20 73 74 72 |mp;...Te|mp = str|
|00004a00| 69 6e 67 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |ing(Curr|entStyle|
|00004a10| 2e 42 47 43 6f 6c 6f 72 | 2e 47 29 3b 0d 0a 09 4f |.BGColor|.G);...O|
|00004a20| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00004a30| 20 4c 65 66 74 28 50 61 | 64 2c 20 33 20 2d 20 4c | Left(Pa|d, 3 - L|
|00004a40| 65 6e 28 54 65 6d 70 29 | 29 20 24 20 54 65 6d 70 |en(Temp)|) $ Temp|
|00004a50| 3b 0d 0a 09 54 65 6d 70 | 20 3d 20 73 74 72 69 6e |;...Temp| = strin|
|00004a60| 67 28 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 42 |g(Curren|tStyle.B|
|00004a70| 47 43 6f 6c 6f 72 2e 42 | 29 3b 0d 0a 09 4f 75 74 |GColor.B|);...Out|
|00004a80| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|00004a90| 65 66 74 28 50 61 64 2c | 20 33 20 2d 20 4c 65 6e |eft(Pad,| 3 - Len|
|00004aa0| 28 54 65 6d 70 29 29 20 | 24 20 54 65 6d 70 3b 0d |(Temp)) |$ Temp;.|
|00004ab0| 0a 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |....if(C|urrentSt|
|00004ac0| 79 6c 65 2e 62 43 65 6e | 74 65 72 29 0d 0a 09 09 |yle.bCen|ter)....|
|00004ad0| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004ae0| 24 20 22 54 22 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |$ "T";..|.else...|
|00004af0| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004b00| 20 24 20 22 46 22 3b 0d | 0a 0d 0a 09 69 66 28 43 | $ "F";.|....if(C|
|00004b10| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 4c 69 6e |urrentSt|yle.bLin|
|00004b20| 6b 29 0d 0a 09 09 4f 75 | 74 70 75 74 20 3d 20 4f |k)....Ou|tput = O|
|00004b30| 75 74 70 75 74 20 24 20 | 22 54 22 3b 0d 0a 09 65 |utput $ |"T";...e|
|00004b40| 6c 73 65 0d 0a 09 09 4f | 75 74 70 75 74 20 3d 20 |lse....O|utput = |
|00004b50| 4f 75 74 70 75 74 20 24 | 20 22 46 22 3b 0d 0a 0d |Output $| "F";...|
|00004b60| 0a 09 69 66 28 43 75 72 | 72 65 6e 74 53 74 79 6c |..if(Cur|rentStyl|
|00004b70| 65 2e 62 55 6e 64 65 72 | 6c 69 6e 65 29 0d 0a 09 |e.bUnder|line)...|
|00004b80| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004b90| 20 24 20 22 54 22 3b 0d | 0a 09 65 6c 73 65 0d 0a | $ "T";.|..else..|
|00004ba0| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004bb0| 74 20 24 20 22 46 22 3b | 0d 0a 0d 0a 09 69 66 28 |t $ "F";|.....if(|
|00004bc0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 4e 6f |CurrentS|tyle.bNo|
|00004bd0| 42 52 29 0d 0a 09 09 4f | 75 74 70 75 74 20 3d 20 |BR)....O|utput = |
|00004be0| 4f 75 74 70 75 74 20 24 | 20 22 54 22 3b 0d 0a 09 |Output $| "T";...|
|00004bf0| 65 6c 73 65 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |else....|Output =|
|00004c00| 20 4f 75 74 70 75 74 20 | 24 20 22 46 22 3b 0d 0a | Output |$ "F";..|
|00004c10| 0d 0a 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|00004c20| 6c 65 2e 62 48 65 61 64 | 69 6e 67 29 0d 0a 09 09 |le.bHead|ing)....|
|00004c30| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004c40| 24 20 22 54 22 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |$ "T";..|.else...|
|00004c50| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004c60| 20 24 20 22 46 22 3b 0d | 0a 0d 0a 09 69 66 28 43 | $ "F";.|....if(C|
|00004c70| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 42 6f 6c |urrentSt|yle.bBol|
|00004c80| 64 29 0d 0a 09 09 4f 75 | 74 70 75 74 20 3d 20 4f |d)....Ou|tput = O|
|00004c90| 75 74 70 75 74 20 24 20 | 22 54 22 3b 0d 0a 09 65 |utput $ |"T";...e|
|00004ca0| 6c 73 65 0d 0a 09 09 4f | 75 74 70 75 74 20 3d 20 |lse....O|utput = |
|00004cb0| 4f 75 74 70 75 74 20 24 | 20 22 46 22 3b 0d 0a 0d |Output $| "F";...|
|00004cc0| 0a 09 69 66 28 43 75 72 | 72 65 6e 74 53 74 79 6c |..if(Cur|rentStyl|
|00004cd0| 65 2e 62 42 6c 69 6e 6b | 29 0d 0a 09 09 4f 75 74 |e.bBlink|)....Out|
|00004ce0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 22 |put = Ou|tput $ "|
|00004cf0| 54 22 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 4f 75 |T";...el|se....Ou|
|00004d00| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00004d10| 22 46 22 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |"F";....|.return |
|00004d20| 4f 75 74 70 75 74 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Output;.|.}....fu|
|00004d30| 6e 63 74 69 6f 6e 20 69 | 6e 74 20 52 65 61 64 53 |nction i|nt ReadS|
|00004d40| 74 79 6c 65 54 65 78 74 | 28 73 74 72 69 6e 67 20 |tyleText|(string |
|00004d50| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 6f 75 74 |StyleStr|ing, out|
|00004d60| 20 69 6e 74 20 53 74 79 | 6c 65 50 6f 73 2c 20 6f | int Sty|lePos, o|
|00004d70| 75 74 20 48 54 4d 4c 53 | 74 79 6c 65 20 43 75 72 |ut HTMLS|tyle Cur|
|00004d80| 72 65 6e 74 53 74 79 6c | 65 29 0d 0a 7b 0d 0a 09 |rentStyl|e)..{...|
|00004d90| 6c 6f 63 61 6c 20 69 6e | 74 20 43 68 61 72 43 6f |local in|t CharCo|
|00004da0| 75 6e 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |unt;...l|ocal int|
|00004db0| 20 69 3b 09 0d 0a 0d 0a | 09 43 68 61 72 43 6f 75 | i;.....|.CharCou|
|00004dc0| 6e 74 20 3d 20 49 6e 74 | 28 4d 69 64 28 53 74 79 |nt = Int|(Mid(Sty|
|00004dd0| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00004de0| 6f 73 2c 20 34 29 29 3b | 0d 0a 09 53 74 79 6c 65 |os, 4));|...Style|
|00004df0| 50 6f 73 20 2b 3d 20 34 | 3b 0d 0a 0d 0a 09 69 20 |Pos += 4|;.....i |
|00004e00| 3d 20 49 6e 74 28 4d 69 | 64 28 53 74 79 6c 65 53 |= Int(Mi|d(StyleS|
|00004e10| 74 72 69 6e 67 2c 20 53 | 74 79 6c 65 50 6f 73 2c |tring, S|tylePos,|
|00004e20| 20 34 29 29 3b 0d 0a 09 | 53 74 79 6c 65 50 6f 73 | 4));...|StylePos|
|00004e30| 20 2b 3d 20 34 3b 0d 0a | 09 09 0d 0a 09 43 75 72 | += 4;..|.....Cur|
|00004e40| 72 65 6e 74 53 74 79 6c | 65 2e 4c 69 6e 6b 44 65 |rentStyl|e.LinkDe|
|00004e50| 73 74 69 6e 61 74 69 6f | 6e 20 3d 20 4d 69 64 28 |stinatio|n = Mid(|
|00004e60| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|00004e70| 6c 65 50 6f 73 2c 20 69 | 29 3b 0d 0a 09 53 74 79 |lePos, i|);...Sty|
|00004e80| 6c 65 50 6f 73 20 2b 3d | 20 69 3b 0d 0a 0d 0a 09 |lePos +=| i;.....|
|00004e90| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 54 65 78 |CurrentS|tyle.Tex|
|00004ea0| 74 43 6f 6c 6f 72 2e 52 | 20 3d 20 49 6e 74 28 4d |tColor.R| = Int(M|
|00004eb0| 69 64 28 53 74 79 6c 65 | 53 74 72 69 6e 67 2c 20 |id(Style|String, |
|00004ec0| 53 74 79 6c 65 50 6f 73 | 2c 20 33 29 29 3b 0d 0a |StylePos|, 3));..|
|00004ed0| 09 53 74 79 6c 65 50 6f | 73 20 2b 3d 20 33 3b 0d |.StylePo|s += 3;.|
|00004ee0| 0a 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 54 |..Curren|tStyle.T|
|00004ef0| 65 78 74 43 6f 6c 6f 72 | 2e 47 20 3d 20 49 6e 74 |extColor|.G = Int|
|00004f00| 28 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 |(Mid(Sty|leString|
|00004f10| 2c 20 53 74 79 6c 65 50 | 6f 73 2c 20 33 29 29 3b |, StyleP|os, 3));|
|00004f20| 0d 0a 09 53 74 79 6c 65 | 50 6f 73 20 2b 3d 20 33 |...Style|Pos += 3|
|00004f30| 3b 0d 0a 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |;...Curr|entStyle|
|00004f40| 2e 54 65 78 74 43 6f 6c | 6f 72 2e 42 20 3d 20 49 |.TextCol|or.B = I|
|00004f50| 6e 74 28 4d 69 64 28 53 | 74 79 6c 65 53 74 72 69 |nt(Mid(S|tyleStri|
|00004f60| 6e 67 2c 20 53 74 79 6c | 65 50 6f 73 2c 20 33 29 |ng, Styl|ePos, 3)|
|00004f70| 29 3b 0d 0a 09 53 74 79 | 6c 65 50 6f 73 20 2b 3d |);...Sty|lePos +=|
|00004f80| 20 33 3b 0d 0a 0d 0a 09 | 43 75 72 72 65 6e 74 53 | 3;.....|CurrentS|
|00004f90| 74 79 6c 65 2e 42 47 43 | 6f 6c 6f 72 2e 52 20 3d |tyle.BGC|olor.R =|
|00004fa0| 20 49 6e 74 28 4d 69 64 | 28 53 74 79 6c 65 53 74 | Int(Mid|(StyleSt|
|00004fb0| 72 69 6e 67 2c 20 53 74 | 79 6c 65 50 6f 73 2c 20 |ring, St|ylePos, |
|00004fc0| 33 29 29 3b 0d 0a 09 53 | 74 79 6c 65 50 6f 73 20 |3));...S|tylePos |
|00004fd0| 2b 3d 20 33 3b 0d 0a 09 | 43 75 72 72 65 6e 74 53 |+= 3;...|CurrentS|
|00004fe0| 74 79 6c 65 2e 42 47 43 | 6f 6c 6f 72 2e 47 20 3d |tyle.BGC|olor.G =|
|00004ff0| 20 49 6e 74 28 4d 69 64 | 28 53 74 79 6c 65 53 74 | Int(Mid|(StyleSt|
|00005000| 72 69 6e 67 2c 20 53 74 | 79 6c 65 50 6f 73 2c 20 |ring, St|ylePos, |
|00005010| 33 29 29 3b 0d 0a 09 53 | 74 79 6c 65 50 6f 73 20 |3));...S|tylePos |
|00005020| 2b 3d 20 33 3b 0d 0a 09 | 43 75 72 72 65 6e 74 53 |+= 3;...|CurrentS|
|00005030| 74 79 6c 65 2e 42 47 43 | 6f 6c 6f 72 2e 42 20 3d |tyle.BGC|olor.B =|
|00005040| 20 49 6e 74 28 4d 69 64 | 28 53 74 79 6c 65 53 74 | Int(Mid|(StyleSt|
|00005050| 72 69 6e 67 2c 20 53 74 | 79 6c 65 50 6f 73 2c 20 |ring, St|ylePos, |
|00005060| 33 29 29 3b 0d 0a 09 53 | 74 79 6c 65 50 6f 73 20 |3));...S|tylePos |
|00005070| 2b 3d 20 33 3b 0d 0a 0d | 0a 09 43 75 72 72 65 6e |+= 3;...|..Curren|
|00005080| 74 53 74 79 6c 65 2e 62 | 43 65 6e 74 65 72 20 3d |tStyle.b|Center =|
|00005090| 20 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 | Mid(Sty|leString|
|000050a0| 2c 20 53 74 79 6c 65 50 | 6f 73 2b 2b 2c 20 31 29 |, StyleP|os++, 1)|
|000050b0| 20 3d 3d 20 22 54 22 3b | 0d 0a 09 43 75 72 72 65 | == "T";|...Curre|
|000050c0| 6e 74 53 74 79 6c 65 2e | 62 4c 69 6e 6b 20 3d 20 |ntStyle.|bLink = |
|000050d0| 4d 69 64 28 53 74 79 6c | 65 53 74 72 69 6e 67 2c |Mid(Styl|eString,|
|000050e0| 20 53 74 79 6c 65 50 6f | 73 2b 2b 2c 20 31 29 20 | StylePo|s++, 1) |
|000050f0| 3d 3d 20 22 54 22 3b 0d | 0a 09 43 75 72 72 65 6e |== "T";.|..Curren|
|00005100| 74 53 74 79 6c 65 2e 62 | 55 6e 64 65 72 6c 69 6e |tStyle.b|Underlin|
|00005110| 65 20 3d 20 4d 69 64 28 | 53 74 79 6c 65 53 74 72 |e = Mid(|StyleStr|
|00005120| 69 6e 67 2c 20 53 74 79 | 6c 65 50 6f 73 2b 2b 2c |ing, Sty|lePos++,|
|00005130| 20 31 29 20 3d 3d 20 22 | 54 22 3b 0d 0a 09 43 75 | 1) == "|T";...Cu|
|00005140| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 4e 6f 42 52 |rrentSty|le.bNoBR|
|00005150| 20 3d 20 4d 69 64 28 53 | 74 79 6c 65 53 74 72 69 | = Mid(S|tyleStri|
|00005160| 6e 67 2c 20 53 74 79 6c | 65 50 6f 73 2b 2b 2c 20 |ng, Styl|ePos++, |
|00005170| 31 29 20 3d 3d 20 22 54 | 22 3b 0d 0a 09 43 75 72 |1) == "T|";...Cur|
|00005180| 72 65 6e 74 53 74 79 6c | 65 2e 62 48 65 61 64 69 |rentStyl|e.bHeadi|
|00005190| 6e 67 20 3d 20 4d 69 64 | 28 53 74 79 6c 65 53 74 |ng = Mid|(StyleSt|
|000051a0| 72 69 6e 67 2c 20 53 74 | 79 6c 65 50 6f 73 2b 2b |ring, St|ylePos++|
|000051b0| 2c 20 31 29 20 3d 3d 20 | 22 54 22 3b 0d 0a 09 43 |, 1) == |"T";...C|
|000051c0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 42 6f 6c |urrentSt|yle.bBol|
|000051d0| 64 20 3d 20 4d 69 64 28 | 53 74 79 6c 65 53 74 72 |d = Mid(|StyleStr|
|000051e0| 69 6e 67 2c 20 53 74 79 | 6c 65 50 6f 73 2b 2b 2c |ing, Sty|lePos++,|
|000051f0| 20 31 29 20 3d 3d 20 22 | 54 22 3b 0d 0a 09 43 75 | 1) == "|T";...Cu|
|00005200| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 42 6c 69 6e |rrentSty|le.bBlin|
|00005210| 6b 20 3d 20 4d 69 64 28 | 53 74 79 6c 65 53 74 72 |k = Mid(|StyleStr|
|00005220| 69 6e 67 2c 20 53 74 79 | 6c 65 50 6f 73 2b 2b 2c |ing, Sty|lePos++,|
|00005230| 20 31 29 20 3d 3d 20 22 | 54 22 3b 0d 0a 0d 0a 09 | 1) == "|T";.....|
|00005240| 72 65 74 75 72 6e 20 43 | 68 61 72 43 6f 75 6e 74 |return C|harCount|
|00005250| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+